]> git.ipfire.org Git - thirdparty/git.git/commitdiff
docs: fix api-trace2 doc for "too_many_files" event
authorJosh Steadmon <steadmon@google.com>
Fri, 4 Jun 2021 02:41:30 +0000 (19:41 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 4 Jun 2021 03:11:16 +0000 (12:11 +0900)
In 87db61a (trace2: write discard message to sentinel files,
2019-10-04), we added a new "too_many_files" event for when trace2
logging would create too many files in an output directory.
Unfortunately, the api-trace2 doc described a "discard" event instead.
Fix the doc to use the correct event name.

Signed-off-by: Josh Steadmon <steadmon@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/technical/api-trace2.txt

index a045dbe422ff000fa29216028a1cfc7c4b071515..d04828d15a10bfc8b4ee2827fb7c2ff1182f0e2b 100644 (file)
@@ -621,14 +621,14 @@ only present on the "start" and "atexit" events.
 }
 ------------
 
-`"discard"`::
+`"too_many_files"`::
        This event is written to the git-trace2-discard sentinel file if there
        are too many files in the target trace directory (see the
        trace2.maxFiles config option).
 +
 ------------
 {
-       "event":"discard",
+       "event":"too_many_files",
        ...
 }
 ------------