]> git.ipfire.org Git - thirdparty/git.git/commit
usage: trace2 BUG() invocations
authorJonathan Tan <jonathantanmy@google.com>
Fri, 5 Feb 2021 20:09:08 +0000 (12:09 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 9 Feb 2021 22:14:34 +0000 (14:14 -0800)
commit0a9dde4a04c1228025d292f44113cb8f9cebbfba
tree02ff80ac0ecd56c9f9d9a7f28e606bdef4a358f8
parent773e25afc41b1b6533fa9ae2cd825d0b4a697fad
usage: trace2 BUG() invocations

die() messages are traced in trace2, but BUG() messages are not. Anyone
tracking die() messages would have even more reason to track BUG().
Therefore, write to trace2 when BUG() is invoked.

Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Helped-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/helper/test-trace2.c
t/t0210-trace2-normal.sh
usage.c