docs: fix api-trace2 doc for "too_many_files" event

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>
maint
Josh Steadmon 2021-06-03 19:41:30 -07:00 committed by Junio C Hamano
parent 87db61a436
commit 7ba68e0cf1
1 changed files with 2 additions and 2 deletions

View 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 This event is written to the git-trace2-discard sentinel file if there
are too many files in the target trace directory (see the are too many files in the target trace directory (see the
trace2.maxFiles config option). trace2.maxFiles config option).
+ +
------------ ------------
{ {
"event":"discard", "event":"too_many_files",
... ...
} }
------------ ------------