git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH v2 0/4] replace die("BUG: ...") with BUG("...")

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Dec 7, 2021, 11:05 UTC
Message-ID
<cover-v2-0.4-00000000000-20211207T110440Z-avarab@gmail.com>
In-Reply-To
<cover-0.2-00000000000-20211206T162442Z-avarab@gmail.com>

A re-roll of this trivial clean-up series, now with 2x more patches for missed cases pointed-out by Junio at https://lore.kernel.org/git/xmqqsfv5b6u6.fsf@gitster.g/

Ævar Arnfjörð Bjarmason (4):
  pack-objects: use BUG(...) not die("BUG: ...")
  strbuf.h: use BUG(...) not die("BUG: ...")
  pathspec: use BUG(...) not die("BUG:%s:%d....", <file>, <line>)
  object.h: use BUG(...) no die("BUG: ...") in lookup_object_by_type()
 builtin/pack-objects.c | 2 +-
 object.c               | 2 +-
 pathspec.h             | 3 +--
 strbuf.h               | 2 +-
 tree-diff.c            | 3 +--
 5 files changed, 5 insertions(+), 7 deletions(-)

Range-diff against v1: 1: 2a17ed9f135 = 1: 4f39177a763 pack-objects: use BUG(...) not die("BUG: ...") 2: ab89fec50c3 = 2: 6740c5d0da8 strbuf.h: use BUG(...) not die("BUG: ...") -: ----------- > 3: 81e354fa3be pathspec: use BUG(...) not die("BUG:%s:%d....", <file>, <line>) -: ----------- > 4: aaf952a9ede object.h: use BUG(...) no die("BUG: ...") in lookup_object_by_type()

-- 
2.34.1.898.g5a552c2e5f0
Previous: Junio C HamanoNext: Ævar Arnfjörð Bjarmason
Message 7 of 11 in “replace die("BUG: ...") with BUG("...")”
  1. 0/2 replace die("BUG: ...") with BUG("...")Ævar Arnfjörð Bjarmason, Dec 6, 2021
  2. 1/2 pack-objects: use BUG(...) not die("BUG: ...")Ævar Arnfjörð Bjarmason, Dec 6, 2021
  3. 2/2 strbuf.h: use BUG(...) not die("BUG: ...")Ævar Arnfjörð Bjarmason, Dec 6, 2021
  4. Junio C HamanoDec 6, 2021
  5. Ævar Arnfjörð BjarmasonDec 7, 2021
  6. 3/2 replace die("BUG: ...") with BUG("...")Junio C Hamano, Dec 7, 2021
  7. 0/4 replace die("BUG: ...") with BUG("...")Ævar Arnfjörð Bjarmason, Dec 7, 2021
  8. 1/4 pack-objects: use BUG(...) not die("BUG: ...")Ævar Arnfjörð Bjarmason, Dec 7, 2021
  9. 2/4 strbuf.h: use BUG(...) not die("BUG: ...")Ævar Arnfjörð Bjarmason, Dec 7, 2021
  10. 3/4 pathspec: use BUG(...) not die("BUG:%s:%d....", <file>, <line>)Ævar Arnfjörð Bjarmason, Dec 7, 2021
  11. 4/4 object.h: use BUG(...) no die("BUG: ...") in lookup_object_by_type()Ævar Arnfjörð Bjarmason, Dec 7, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.