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>
Johannes Schindelin committed
Apr 25, 2018 at 11:54 UTC
d398f2ea001ab4e639896c81fb616810cf14eb12
1 file changed
+1
-1
builtin/replace.c
+1
-1
@@ -501,6 +501,6 @@ int cmd_replace(int argc, const char **argv, const char *prefix)
501
return list_replace_refs(argv[0], format);
502
503
default:
504
- die("BUG: invalid cmdmode %d", (int)cmdmode);
504
+ BUG("invalid cmdmode %d", (int)cmdmode);
505
}
506
}