summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLibravatar Johannes Schindelin <johannes.schindelin@gmx.de>2018-04-25 11:54:06 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-04-26 12:52:58 +0900
commitd398f2ea001ab4e639896c81fb616810cf14eb12 (patch)
tree4b7efc84b8a9e1733b8696da80db0e75b73dabcb /builtin
parentcommit: Let the callback of for_each_mergetag return on error (diff)
downloadtgif-d398f2ea001ab4e639896c81fb616810cf14eb12.tar.xz
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')
-rw-r--r--builtin/replace.c2
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);
}
}