Files
git/version.h
Johannes Schindelin 6bb1ad79a5 version --build-options: report commit, too, if possible
In particular when local tags are used (or tags that are pushed to some
fork) to build Git, it is very hard to figure out from which particular
revision a particular Git executable was built.

Let's just report that in our build options.

We need to be careful, though, to report when the current commit cannot be
determined, e.g. when building from a tarball without any associated Git
repository.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2017-10-23 11:04:10 +02:00

10 lines
180 B
C

#ifndef VERSION_H
#define VERSION_H
extern const char git_version_string[];
const char *git_user_agent(void);
const char *git_user_agent_sanitized(void);
#endif /* VERSION_H */