summaryrefslogtreecommitdiff
path: root/help.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2019-08-29 19:13:16 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-08-30 17:22:42 (GMT)
commit80e3658647561c4a8587978747752f6f63a96717 (patch)
treede5d82aaa08bfeb34f5aa7058da5e42f90911282 /help.c
parent75b2f01a0f642b39b0f29b6218515df9b5eb798e (diff)
downloadgit-80e3658647561c4a8587978747752f6f63a96717.zip
git-80e3658647561c4a8587978747752f6f63a96717.tar.gz
git-80e3658647561c4a8587978747752f6f63a96717.tar.bz2
help: make help_unknown_ref() NORETURN
Announce that calling help_unknown_ref() exits the program. Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'help.c')
-rw-r--r--help.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/help.c b/help.c
index a9e451f..5231c91 100644
--- a/help.c
+++ b/help.c
@@ -774,7 +774,8 @@ static struct string_list guess_refs(const char *ref)
return similar_refs;
}
-void help_unknown_ref(const char *ref, const char *cmd, const char *error)
+NORETURN void help_unknown_ref(const char *ref, const char *cmd,
+ const char *error)
{
int i;
struct string_list suggested_refs = guess_refs(ref);