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