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:
@ -824,7 +824,7 @@ static int grab_objectname(const char *name, const struct object_id *oid,
|
||||
v->s = xstrdup(find_unique_abbrev(oid, atom->u.objectname.length));
|
||||
return 1;
|
||||
} else
|
||||
die("BUG: unknown %%(objectname) option");
|
||||
BUG("unknown %%(objectname) option");
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@ -1372,7 +1372,7 @@ static void fill_remote_ref_details(struct used_atom *atom, const char *refname,
|
||||
else
|
||||
*s = "";
|
||||
} else
|
||||
die("BUG: unhandled RR_* enum");
|
||||
BUG("unhandled RR_* enum");
|
||||
}
|
||||
|
||||
char *get_head_description(void)
|
||||
|
||||
Reference in New Issue
Block a user