diff options
author | Emily Shaffer <emilyshaffer@google.com> | 2020-04-16 14:18:05 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-04-16 15:23:42 -0700 |
commit | 617d57195ae844a43486b2e0ad0b7ac36aaddfdd (patch) | |
tree | 4e0a61c93d3fb555cdb5d7f01e0ea9826f1ced2b /help.h | |
parent | 238b439d69890980dafc5154895d425cb4cf4a5e (diff) | |
download | git-617d57195ae844a43486b2e0ad0b7ac36aaddfdd.tar.gz |
bugreport: gather git version and build info
Knowing which version of Git a user has and how it was built allows us
to more precisely pin down the circumstances when a certain issue
occurs, so teach bugreport how to tell us the same output as 'git
version --build-options'.
It's not ideal to directly call 'git version --build-options' because
that output goes to stdout. Instead, wrap the version string in a helper
within help.[ch] library, and call that helper from within the bugreport
library.
Signed-off-by: Emily Shaffer <emilyshaffer@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'help.h')
-rw-r--r-- | help.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -37,6 +37,7 @@ void add_cmdname(struct cmdnames *cmds, const char *name, int len); void exclude_cmds(struct cmdnames *cmds, struct cmdnames *excludes); int is_in_cmdlist(struct cmdnames *cmds, const char *name); void list_commands(unsigned int colopts, struct cmdnames *main_cmds, struct cmdnames *other_cmds); +void get_version_info(struct strbuf *buf, int show_build_options); /* * call this to die(), when it is suspected that the user mistyped a |