summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorKaartic Sivaraam <kaarticsivaraam91196@gmail.com>2017-09-12 11:14:06 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-09-14 06:01:47 (GMT)
commitb3a8076e0d9319be38d786a0bffc50c4248a0d3e (patch)
tree13bd2c5edc65f03218f4cdd4205720d7a3d5963b /builtin
parent94c9fd268d4287f6fbfef84793288479905a7e48 (diff)
downloadgit-b3a8076e0d9319be38d786a0bffc50c4248a0d3e.zip
git-b3a8076e0d9319be38d786a0bffc50c4248a0d3e.tar.gz
git-b3a8076e0d9319be38d786a0bffc50c4248a0d3e.tar.bz2
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>
Diffstat (limited to 'builtin')
-rw-r--r--builtin/help.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/help.c b/builtin/help.c
index 334a849..dbe45c5 100644
--- a/builtin/help.c
+++ b/builtin/help.c
@@ -438,7 +438,7 @@ static const char *check_git_cmd(const char* cmd)
alias = alias_lookup(cmd);
if (alias) {
- printf_ln(_("`git %s' is aliased to `%s'"), cmd, alias);
+ printf_ln(_("'%s' is aliased to '%s'"), cmd, alias);
free(alias);
exit(0);
}