]> git.ipfire.org Git - thirdparty/git.git/blame - Documentation/git-bugreport.txt
Merge branch 'rs/use-xstrncmpz'
[thirdparty/git.git] / Documentation / git-bugreport.txt
CommitLineData
238b439d
ES
1git-bugreport(1)
2================
3
4NAME
5----
6git-bugreport - Collect information for user to file a bug report
7
8SYNOPSIS
9--------
10[verse]
11'git bugreport' [(-o | --output-directory) <path>] [(-s | --suffix) <format>]
aac0e8ff 12 [--diagnose[=<mode>]]
238b439d
ES
13
14DESCRIPTION
15-----------
cf6cac20
EN
16Collects information about the user's machine, Git client, and repository
17state, in addition to a form requesting information about the behavior the
18user observed, and stores it in a single text file which the user can then
19share, for example to the Git mailing list, in order to report an observed
20bug.
238b439d
ES
21
22The following information is requested from the user:
23
24 - Reproduction steps
25 - Expected behavior
26 - Actual behavior
27
617d5719
ES
28The following information is captured automatically:
29
30 - 'git version --build-options'
1411914a 31 - uname sysname, release, version, and machine strings
69bcbbce 32 - Compiler-specific info string
788a7760 33 - A list of enabled hooks
4a4804ed 34 - $SHELL
617d5719 35
aac0e8ff
VD
36Additional information may be gathered into a separate zip archive using the
37`--diagnose` option, and can be attached alongside the bugreport document to
38provide additional context to readers.
39
238b439d
ES
40This tool is invoked via the typical Git setup process, which means that in some
41cases, it might not be able to launch - for example, if a relevant config file
42is unreadable. In this kind of scenario, it may be helpful to manually gather
43the kind of information listed above when manually asking for help.
44
45OPTIONS
46-------
47-o <path>::
48--output-directory <path>::
ca0cc98e
BS
49 Place the resulting bug report file in `<path>` instead of the current
50 directory.
238b439d
ES
51
52-s <format>::
53--suffix <format>::
54 Specify an alternate suffix for the bugreport name, to create a file
2162f9f6 55 named 'git-bugreport-<formatted-suffix>'. This should take the form of a
01b62aaf 56 strftime(3) format string; the current local time will be used.
238b439d 57
aac0e8ff
VD
58--no-diagnose::
59--diagnose[=<mode>]::
60 Create a zip archive of supplemental information about the user's
61 machine, Git client, and repository state. The archive is written to the
62 same output directory as the bug report and is named
2162f9f6 63 'git-diagnostics-<formatted-suffix>'.
aac0e8ff
VD
64+
65Without `mode` specified, the diagnostic archive will contain the default set of
66statistics reported by `git diagnose`. An optional `mode` value may be specified
67to change which information is included in the archive. See
68linkgit:git-diagnose[1] for the list of valid values for `mode` and details
69about their usage.
70
238b439d
ES
71GIT
72---
73Part of the linkgit:git[1] suite