Skip to content

Commit b3a8076

Browse files
Kaartic Sivaraamgitster
authored andcommitted
help: change a message to be more precise
When the user tries to use '--help' option on an aliased command information about the alias is printed as sshown below, $ git co --help `git co' is aliased to `checkout' This doesn't seem correct as the user has aliased only 'co' and not 'git co'. This might even be incorrect in cases in which the user has used an alias like 'tgit'. $ tgit co --help `git co' is aliased to `checkout' So, make the message more precise. Signed-off-by: Kaartic Sivaraam <kaarticsivaraam91196@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 94c9fd2 commit b3a8076

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/help.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ static const char *check_git_cmd(const char* cmd)
438438

439439
alias = alias_lookup(cmd);
440440
if (alias) {
441-
printf_ln(_("`git %s' is aliased to `%s'"), cmd, alias);
441+
printf_ln(_("'%s' is aliased to '%s'"), cmd, alias);
442442
free(alias);
443443
exit(0);
444444
}

0 commit comments

Comments
 (0)