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>
This commit is contained in:

committed by
Junio C Hamano

parent
75b2f01a0f
commit
80e3658647
3
help.c
3
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);
|
||||
|
Reference in New Issue
Block a user