add the git prefix to the long version output
Tested on MacOS, written and not tested for Linux, not attempted for Windows
This commit is contained in:
@@ -58,6 +58,10 @@ getversionstring(char *buf, size_t bufsz)
|
||||
"%sbranch:%s",
|
||||
c++ ? "," : "", nomakedefs.git_branch);
|
||||
#endif
|
||||
if (nomakedefs.git_prefix)
|
||||
Snprintf(eos(buf), (bufsz - strlen(buf)) - 1,
|
||||
"%sprefix:%s",
|
||||
c++ ? "," : "", nomakedefs.git_prefix);
|
||||
if (c)
|
||||
Snprintf(eos(buf), (bufsz - strlen(buf)) - 1,
|
||||
"%s", ")");
|
||||
|
||||
Reference in New Issue
Block a user