summaryrefslogtreecommitdiff
path: root/help.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-09-30 04:19:27 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-09-30 04:19:27 (GMT)
commit8e111e487bbb939406655619e7ed241bd263d85c (patch)
treec54ee7a093f5bfb8ff582b232392ae126b8d2a96 /help.c
parent3ff6af7753287f2cac8261ae5184c3381373b836 (diff)
parent80e3658647561c4a8587978747752f6f63a96717 (diff)
downloadgit-8e111e487bbb939406655619e7ed241bd263d85c.zip
git-8e111e487bbb939406655619e7ed241bd263d85c.tar.gz
git-8e111e487bbb939406655619e7ed241bd263d85c.tar.bz2
Merge branch 'rs/help-unknown-ref-does-not-return'
Code cleanup. * rs/help-unknown-ref-does-not-return: help: make help_unknown_ref() NORETURN
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 5261d83..9ff2be6 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);