@@ -23,7 +23,7 @@ formats in the future. This might be used to define a binary format,
2323for example.
2424
2525Trace2 is controlled using `trace2.*` config values in the system and
26- global config files and `GIT_TR2 *` environment variables. Trace2 does
26+ global config files and `GIT_TRACE2 *` environment variables. Trace2 does
2727not read from repo local or worktree config files or respect `-c`
2828command line config settings.
2929
@@ -42,7 +42,7 @@ config setting.
4242For example
4343
4444------------
45- $ export GIT_TR2 =~/log.normal
45+ $ export GIT_TRACE2 =~/log.normal
4646$ git version
4747git version 2.20.1.155.g426c96fcdb
4848------------
@@ -71,13 +71,13 @@ $ cat ~/log.normal
7171The performance format target (PERF) is a column-based format to
7272replace GIT_TRACE_PERFORMANCE and is suitable for development and
7373testing, possibly to complement tools like gprof. This format is
74- enabled with the `GIT_TR2_PERF ` environment variable or the
74+ enabled with the `GIT_TRACE2_PERF ` environment variable or the
7575`trace2.perfTarget` system or global config setting.
7676
7777For example
7878
7979------------
80- $ export GIT_TR2_PERF =~/log.perf
80+ $ export GIT_TRACE2_PERF =~/log.perf
8181$ git version
8282git version 2.20.1.155.g426c96fcdb
8383------------
@@ -104,14 +104,14 @@ $ cat ~/log.perf
104104=== The Event Format Target
105105
106106The event format target is a JSON-based format of event data suitable
107- for telemetry analysis. This format is enabled with the `GIT_TR2_EVENT `
107+ for telemetry analysis. This format is enabled with the `GIT_TRACE2_EVENT `
108108environment variable or the `trace2.eventTarget` system or global config
109109setting.
110110
111111For example
112112
113113------------
114- $ export GIT_TR2_EVENT =~/log.event
114+ $ export GIT_TRACE2_EVENT =~/log.event
115115$ git version
116116git version 2.20.1.155.g426c96fcdb
117117------------
@@ -273,7 +273,7 @@ significantly affects program performance or behavior, such as
273273 Emits a "def_param" messages for "important" configuration
274274 settings.
275275+
276- The environment variable `GIT_TR2_CONFIG_PARAMS ` or the `trace2.configParams`
276+ The environment variable `GIT_TRACE2_CONFIG_PARAMS ` or the `trace2.configParams`
277277config value can be set to a
278278list of patterns of important configuration settings, for example:
279279`core.*,remote.*.url`. This function will iterate over all config
@@ -465,7 +465,7 @@ Events are written as lines of the form:
465465Note that this may contain embedded LF or CRLF characters that are
466466not escaped, so the event may spill across multiple lines.
467467
468- If `GIT_TR2_BRIEF ` or `trace2.normalBrief` is true, the `time`, `filename`,
468+ If `GIT_TRACE2_BRIEF ` or `trace2.normalBrief` is true, the `time`, `filename`,
469469and `line` fields are omitted.
470470
471471This target is intended to be more of a summary (like GIT_TRACE) and
@@ -533,7 +533,7 @@ This field is in anticipation of in-proc submodules in the future.
53353315:33:33.532712 wt-status.c:2331 | d0 | main | region_leave | r1 | 0.127568 | 0.001504 | status | label:print
534534------------
535535
536- If `GIT_TR2_PERF_BRIEF ` or `trace2.perfBrief` is true, the `time`, `file`,
536+ If `GIT_TRACE2_PERF_BRIEF ` or `trace2.perfBrief` is true, the `time`, `file`,
537537and `line` fields are omitted.
538538
539539------------
@@ -598,7 +598,7 @@ The following key/value pairs are common to all events:
598598`"repo":<repo-id>`::
599599 when present, is the integer repo-id as described previously.
600600
601- If `GIT_TR2_EVENT_BRIEF ` or `trace2.eventBrief` is true, the `file`
601+ If `GIT_TRACE2_EVENT_BRIEF ` or `trace2.eventBrief` is true, the `file`
602602and `line` fields are omitted from all events and the `time` field is
603603only present on the "start" and "atexit" events.
604604
@@ -911,7 +911,7 @@ visited.
911911The `category` field may be used in a future enhancement to
912912do category-based filtering.
913913+
914- `GIT_TR2_EVENT_NESTING ` or `trace2.eventNesting` can be used to
914+ `GIT_TRACE2_EVENT_NESTING ` or `trace2.eventNesting` can be used to
915915filter deeply nested regions and data events. It defaults to "2".
916916
917917`"region_leave"`::
@@ -1039,8 +1039,8 @@ rev-list, and gc. This example also shows that fetch took
103910395.199 seconds and of that 4.932 was in ssh.
10401040+
10411041----------------
1042- $ export GIT_TR2_BRIEF =1
1043- $ export GIT_TR2 =~/log.normal
1042+ $ export GIT_TRACE2_BRIEF =1
1043+ $ export GIT_TRACE2 =~/log.normal
10441044$ git fetch origin
10451045...
10461046----------------
@@ -1075,8 +1075,8 @@ its name as "gc", it also reports the hierarchy as "fetch/gc".
10751075indented for clarity.)
10761076+
10771077----------------
1078- $ export GIT_TR2_BRIEF =1
1079- $ export GIT_TR2 =~/log.normal
1078+ $ export GIT_TRACE2_BRIEF =1
1079+ $ export GIT_TRACE2 =~/log.normal
10801080$ git fetch origin
10811081...
10821082----------------
@@ -1134,8 +1134,8 @@ In this example, scanning for untracked files ran from +0.012568 to
11341134+0.027149 (since the process started) and took 0.014581 seconds.
11351135+
11361136----------------
1137- $ export GIT_TR2_PERF_BRIEF =1
1138- $ export GIT_TR2_PERF =~/log.perf
1137+ $ export GIT_TRACE2_PERF_BRIEF =1
1138+ $ export GIT_TRACE2_PERF =~/log.perf
11391139$ git status
11401140...
11411141
@@ -1180,8 +1180,8 @@ static enum path_treatment read_directory_recursive(struct dir_struct *dir,
11801180We can further investigate the time spent scanning for untracked files.
11811181+
11821182----------------
1183- $ export GIT_TR2_PERF_BRIEF =1
1184- $ export GIT_TR2_PERF =~/log.perf
1183+ $ export GIT_TRACE2_PERF_BRIEF =1
1184+ $ export GIT_TRACE2_PERF =~/log.perf
11851185$ git status
11861186...
11871187$ cat ~/log.perf
@@ -1236,8 +1236,8 @@ int read_index_from(struct index_state *istate, const char *path,
12361236This example shows that the index contained 3552 entries.
12371237+
12381238----------------
1239- $ export GIT_TR2_PERF_BRIEF =1
1240- $ export GIT_TR2_PERF =~/log.perf
1239+ $ export GIT_TRACE2_PERF_BRIEF =1
1240+ $ export GIT_TRACE2_PERF =~/log.perf
12411241$ git status
12421242...
12431243$ cat ~/log.perf
@@ -1310,8 +1310,8 @@ Data events are tagged with the active thread name. They are used
13101310to report the per-thread parameters.
13111311+
13121312----------------
1313- $ export GIT_TR2_PERF_BRIEF =1
1314- $ export GIT_TR2_PERF =~/log.perf
1313+ $ export GIT_TRACE2_PERF_BRIEF =1
1314+ $ export GIT_TRACE2_PERF =~/log.perf
13151315$ git status
13161316...
13171317$ cat ~/log.perf
0 commit comments