Merge branch 'ab/bug-if-bug'
commit4da14b574f2e52eb05e4fef7ed169a8f9e3a8b67
authorJunio C Hamano <gitster@pobox.com>
Fri, 10 Jun 2022 22:04:15 +0000 (10 15:04 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 10 Jun 2022 22:04:15 +0000 (10 15:04 -0700)
tree134a132278b3ca34974f2812b24acb5fe9a47810
parent28c2a3599730cca72c587bec7a9a72705635d992
parent6d40f0ad15e72daab6524988c9c4b4a3460488f8
Merge branch 'ab/bug-if-bug'

A new bug() and BUG_if_bug() API is introduced to make it easier to
uniformly log "detect multiple bugs and abort in the end" pattern.

* ab/bug-if-bug:
  cache-tree.c: use bug() and BUG_if_bug()
  receive-pack: use bug() and BUG_if_bug()
  parse-options.c: use optbug() instead of BUG() "opts" check
  parse-options.c: use new bug() API for optbug()
  usage.c: add a non-fatal bug() function to go with BUG()
  common-main.c: move non-trace2 exit() behavior out of trace2.c
builtin/receive-pack.c
cache-tree.c
git-compat-util.h