diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-10-15 04:48:01 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-10-15 04:48:01 (GMT) |
commit | d0ce4d9024882b5363141288979ea3689eab9998 (patch) | |
tree | cfd58c1a5cb0f735536ca96400329649477e8d7f /trace2/tr2_sysenv.c | |
parent | 6ed610b96840349e9a29c40e60dc926ce03d982b (diff) | |
parent | 87db61a4363ad9f42cf7b0d90ad13763dc01e3af (diff) | |
download | git-d0ce4d9024882b5363141288979ea3689eab9998.zip git-d0ce4d9024882b5363141288979ea3689eab9998.tar.gz git-d0ce4d9024882b5363141288979ea3689eab9998.tar.bz2 |
Merge branch 'js/trace2-cap-max-output-files'
The trace2 output, when sending them to files in a designated
directory, can populate the directory with too many files; a
mechanism is introduced to set the maximum number of files and
discard further logs when the maximum is reached.
* js/trace2-cap-max-output-files:
trace2: write discard message to sentinel files
trace2: discard new traces if target directory has too many files
docs: clarify trace2 version invariants
docs: mention trace2 target-dir mode in git-config
Diffstat (limited to 'trace2/tr2_sysenv.c')
-rw-r--r-- | trace2/tr2_sysenv.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/trace2/tr2_sysenv.c b/trace2/tr2_sysenv.c index 5958cfc..3c3792e 100644 --- a/trace2/tr2_sysenv.c +++ b/trace2/tr2_sysenv.c @@ -49,6 +49,9 @@ static struct tr2_sysenv_entry tr2_sysenv_settings[] = { "trace2.perftarget" }, [TR2_SYSENV_PERF_BRIEF] = { "GIT_TRACE2_PERF_BRIEF", "trace2.perfbrief" }, + + [TR2_SYSENV_MAX_FILES] = { "GIT_TRACE2_MAX_FILES", + "trace2.maxfiles" }, }; /* clang-format on */ |