diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2018-04-25 12:54:06 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-04-26 06:52:58 +0300 |
commit | d398f2ea001ab4e639896c81fb616810cf14eb12 (patch) | |
tree | 4b7efc84b8a9e1733b8696da80db0e75b73dabcb /builtin/replace.c | |
parent | fef461ea5d53dd84c6d946f57a018ffc9f391a05 (diff) |
replace: avoid using die() to indicate a bug
We have the BUG() macro for that purpose.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/replace.c')
-rw-r--r-- | builtin/replace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/replace.c b/builtin/replace.c index 245d3f4164..e345a5a0f1 100644 --- a/builtin/replace.c +++ b/builtin/replace.c @@ -501,6 +501,6 @@ int cmd_replace(int argc, const char **argv, const char *prefix) return list_replace_refs(argv[0], format); default: - die("BUG: invalid cmdmode %d", (int)cmdmode); + BUG("invalid cmdmode %d", (int)cmdmode); } } |