summaryrefslogtreecommitdiff
path: root/builtin-show-branch.c
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2007-01-24 15:05:16 +0100
committerJunio C Hamano <junkio@cox.net>2007-01-24 15:13:47 -0800
commit084ae0a7bd8a13dea7731dd7b6bf37f08c1cfc77 (patch)
treedebf27e7cf50c04190b1759caa3117e60c78edd5 /builtin-show-branch.c
parente955ae957c401cb541f23d46af66c9b3d5b8ffe9 (diff)
downloadgit-084ae0a7bd8a13dea7731dd7b6bf37f08c1cfc77.tar.gz
reflog inspection: introduce shortcut "-g"
A short-hand "-g" for "git log --walk-reflogs" and "git show-branch --reflog" makes it easier to access the reflog info. [jc: added -g to show-branch for symmetry] Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'builtin-show-branch.c')
-rw-r--r--builtin-show-branch.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/builtin-show-branch.c b/builtin-show-branch.c
index b54c410e14..536245e7d3 100644
--- a/builtin-show-branch.c
+++ b/builtin-show-branch.c
@@ -649,11 +649,13 @@ int cmd_show_branch(int ac, const char **av, const char *prefix)
dense = 0;
else if (!strcmp(arg, "--date-order"))
lifo = 0;
- else if (!strcmp(arg, "--reflog")) {
+ else if (!strcmp(arg, "--reflog") || !strcmp(arg, "-g")) {
reflog = DEFAULT_REFLOG;
}
else if (!strncmp(arg, "--reflog=", 9))
parse_reflog_param(arg + 9, &reflog, &reflog_base);
+ else if (!strncmp(arg, "-g=", 3))
+ parse_reflog_param(arg + 3, &reflog, &reflog_base);
else
usage(show_branch_usage);
ac--; av++;