summaryrefslogtreecommitdiff
path: root/builtin/commit-tree.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2017-09-05 08:14:43 -0400
committerJunio C Hamano <gitster@pobox.com>2017-09-06 17:19:53 +0900
commit9b028aa45a2016ae0dbdfeb85ad9d43f2017db0d (patch)
tree5208c5c116ffeb67bec90c1d2e00d71631152739 /builtin/commit-tree.c
parentf5b4dc7668b6c8d71432af9f9ddad6f7c62d284e (diff)
tempfile: replace die("BUG") with BUG()
Compared to die(), using BUG() triggers abort(). That may give us an actual coredump, which should make it easier to get a stack trace. And since the programming error for these assertions is not in the functions themselves but in their callers, such a stack trace is needed to actually find the source of the bug. In addition, abort() raises SIGABRT, which is more likely to be caught by our test suite. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit-tree.c')
0 files changed, 0 insertions, 0 deletions