summaryrefslogtreecommitdiff
path: root/Documentation/git.txt
diff options
context:
space:
mode:
authorLibravatar Derrick Stolee <dstolee@microsoft.com>2019-05-10 12:44:26 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-05-13 22:54:02 +0900
commit04b7e86e4854fecc8cca1d3c08af5cfe771e9091 (patch)
treeba8be232f44e80eac8a9047f9bbb87fae6b346c1 /Documentation/git.txt
parentThe eighth batch (diff)
downloadtgif-04b7e86e4854fecc8cca1d3c08af5cfe771e9091.tar.xz
trace2: add variable description to git.txt
Documentation/technical/api-trace2.txt contains the full details of the trace2 API and the GIT_TR2* environment variables. However, most environment variables are included in Documentation/git.txt, including the GIT_TRACE* variables. Add a brief description of the GIT_TR2* variables with links to the full technical details. The biggest difference from the original variables is that we can specify a Unix Domain Socket. Mention this difference, but leave the details to the technical documents. Reported-by: Szeder Gábor <szeder.dev@gmail.com> Signed-off-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git.txt')
-rw-r--r--Documentation/git.txt21
1 files changed, 21 insertions, 0 deletions
diff --git a/Documentation/git.txt b/Documentation/git.txt
index 6d1f2fd9ae..72adfcc5e2 100644
--- a/Documentation/git.txt
+++ b/Documentation/git.txt
@@ -660,6 +660,27 @@ of clones and fetches.
When a curl trace is enabled (see `GIT_TRACE_CURL` above), do not dump
data (that is, only dump info lines and headers).
+`GIT_TR2`::
+ Enables more detailed trace messages from the "trace2" library.
+ Output from `GIT_TR2` is a simple text-based format for human
+ readability.
++
+The `GIT_TR2` variables can take many values. Any value available to
+the `GIT_TRACE` variables is also available to `GIT_TR2`. The `GIT_TR2`
+variables can also specify a Unix Domain Socket. See
+link:technical/api-trace2.html[Trace2 documentation] for full details.
+
+`GIT_TR2_EVENT`::
+ This setting writes a JSON-based format that is suited for machine
+ interpretation. See link:technical/api-trace2.html[Trace2 documentation]
+ for full details.
+
+`GIT_TR2_PERF`::
+ In addition to the text-based messages available in `GIT_TR2`, this
+ setting writes a column-based format for understanding nesting
+ regions. See link:technical/api-trace2.html[Trace2 documentation]
+ for full details.
+
`GIT_REDACT_COOKIES`::
This can be set to a comma-separated list of strings. When a curl trace
is enabled (see `GIT_TRACE_CURL` above), whenever a "Cookies:" header