Merge branch 'js/use-bug-macro'
Developer support update, by using BUG() macro instead of die() to
mark codepaths that should not happen more clearly.
* js/use-bug-macro:
BUG_exit_code: fix sparse "symbol not declared" warning
Convert remaining die*(BUG) messages
Replace all die("BUG: ...") calls by BUG() ones
run-command: use BUG() to report bugs, not die()
test-tool: help verifying BUG() code paths
This commit is contained in:
@@ -477,7 +477,7 @@ static void write_selected_commits_v1(struct hashfile *f,
|
||||
sha1_pos(stored->commit->object.oid.hash, index, index_nr, sha1_access);
|
||||
|
||||
if (commit_pos < 0)
|
||||
die("BUG: trying to write commit not in index");
|
||||
BUG("trying to write commit not in index");
|
||||
|
||||
hashwrite_be32(f, commit_pos);
|
||||
hashwrite_u8(f, stored->xor_offset);
|
||||
|
||||
Reference in New Issue
Block a user