Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
replace: avoid using die() to indicate a bug
author
Johannes Schindelin
<johannes.schindelin@gmx.de>
Wed, 25 Apr 2018 09:54:06 +0000
(11:54 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 26 Apr 2018 03:52:58 +0000
(12:52 +0900)
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>
builtin/replace.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
fef461e
)
diff --git
a/builtin/replace.c
b/builtin/replace.c
index 245d3f4164e067abef37ae947431e862190ba14b..e345a5a0f1c815644cf5e41d1f52da619f2d20bc 100644
(file)
--- 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);
}
}