From d398f2ea001ab4e639896c81fb616810cf14eb12 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Wed, 25 Apr 2018 11:54:06 +0200 Subject: replace: avoid using die() to indicate a bug We have the BUG() macro for that purpose. Signed-off-by: Johannes Schindelin Signed-off-by: Junio C Hamano --- builtin/replace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'builtin') 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); } } -- cgit v1.2.3