Try: git describe --all or git describe --all --dirty --long
git help describe
PS: a git branch is effectively a *moving* tag so for a BUILD_VERSION it
seems wrong to rely on branches (--all) instead of tags. I think you mean
BUILD_BRANCH instead of BUILD_VERSION.
Le sam. 8 juin 2019 à 15:25,
Hello,
https://stackoverflow.com/questions/1417957/show-just-the-current-branch-in-git
suggests:
git rev-parse --abbrev-ref HEAD
Regards,
Juan
On Sat, Jun 8, 2019 at 5:25 PM Steven Truppe wrote:
> Hi everyone,
>
> i want to have code lines like:
>
> #define BUILD_VERSION
>
> and the
On Sat, Jun 8, 2019 at 3:25 PM Steven Truppe wrote:
> Hi everyone,
>
> i want to have code lines like:
>
> #define BUILD_VERSION
>
> and the BUILD_VERSION should be the name of the actual branch the code
> was compiled with, this way i can create a branch for each version and
> name it like 0.1
Hi everyone,
i want to have code lines like:
#define BUILD_VERSION
and the BUILD_VERSION should be the name of the actual branch the code
was compiled with, this way i can create a branch for each version and
name it like 0.1 so each version i'm using for release is an own branch.
I found