[PATCH 1/3] help: Fix help message for aliases

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The current "`git br' is aliased to `branch'" looks a bit
strange. Prepend 'git' to aliased output too so that the
end result will be looked like this:

 $ git help br
 `git br' is aliased to `git branch'

Signed-off-by: Namhyung Kim <namhyung.kim@xxxxxxx>
---
 builtin/help.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/builtin/help.c b/builtin/help.c
index 61ff798..f85c870 100644
--- a/builtin/help.c
+++ b/builtin/help.c
@@ -445,7 +445,7 @@ int cmd_help(int argc, const char **argv, const char *prefix)
 
 	alias = alias_lookup(argv[0]);
 	if (alias && !is_git_command(argv[0])) {
-		printf("`git %s' is aliased to `%s'\n", argv[0], alias);
+		printf("`git %s' is aliased to `git %s'\n", argv[0], alias);
 		return 0;
 	}
 
-- 
1.7.9

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]