{"thread":{"id":"46738","subject":"[PATCH] help: change a message to be more precise","startedAt":"2017-09-12T11:14:18Z","lastAt":"2017-09-12T11:14:18Z","messageCount":1,"participants":["Kaartic Sivaraam"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"327883","messageId":"20170912111406.6749-1-kaarticsivaraam91196@gmail.com","threadId":"46738","inReplyTo":null,"subject":"[PATCH] help: change a message to be more precise","fromName":"Kaartic Sivaraam","fromEmail":"kaarticsivaraam91196@gmail.com","sentAt":"2017-09-12T11:14:06Z","receivedAt":"2017-09-12T11:14:18Z","isPatch":true,"sender":{"key":"kaartic.sivaraam@gmail.com","avatar":"https://avatars.githubusercontent.com/u/12448084?v=4"},"body":"When the user tries to use '--help' option on an aliased command\ninformation about the alias is printed as sshown below,\n\n    $ git co --help\n    `git co' is aliased to `checkout'\n\nThis doesn't seem correct as the user has aliased only 'co' and not\n'git co'. This might even be incorrect in cases in which the user has\nused an alias like 'tgit'.\n\n    $ tgit co --help\n    `git co' is aliased to `checkout'\n\nSo, make the message more precise.\n\nSigned-off-by: Kaartic Sivaraam <kaarticsivaraam91196@gmail.com>\n---\n builtin/help.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/builtin/help.c b/builtin/help.c\nindex 334a8494a..dbe45c596 100644\n--- a/builtin/help.c\n+++ b/builtin/help.c\n@@ -438,7 +438,7 @@ static const char *check_git_cmd(const char* cmd)\n \n \talias = alias_lookup(cmd);\n \tif (alias) {\n-\t\tprintf_ln(_(\"`git %s' is aliased to `%s'\"), cmd, alias);\n+\t\tprintf_ln(_(\"'%s' is aliased to '%s'\"), cmd, alias);\n \t\tfree(alias);\n \t\texit(0);\n \t}\n-- \n2.14.1.1006.g90ad9a07c\n\n"}]}