]> git.ipfire.org Git - thirdparty/git.git/commit
bugreport: gather git version and build info
authorEmily Shaffer <emilyshaffer@google.com>
Thu, 16 Apr 2020 21:18:05 +0000 (14:18 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 16 Apr 2020 22:23:42 +0000 (15:23 -0700)
commit617d57195ae844a43486b2e0ad0b7ac36aaddfdd
tree4e0a61c93d3fb555cdb5d7f01e0ea9826f1ced2b
parent238b439d69890980dafc5154895d425cb4cf4a5e
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>
Documentation/git-bugreport.txt
bugreport.c
help.c
help.h