summaryrefslogtreecommitdiff
path: root/revision.c
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2007-01-24 14:05:16 (GMT)
committerJunio C Hamano <junkio@cox.net>2007-01-24 23:13:47 (GMT)
commit084ae0a7bd8a13dea7731dd7b6bf37f08c1cfc77 (patch)
treedebf27e7cf50c04190b1759caa3117e60c78edd5 /revision.c
parente955ae957c401cb541f23d46af66c9b3d5b8ffe9 (diff)
downloadgit-084ae0a7bd8a13dea7731dd7b6bf37f08c1cfc77.zip
git-084ae0a7bd8a13dea7731dd7b6bf37f08c1cfc77.tar.gz
git-084ae0a7bd8a13dea7731dd7b6bf37f08c1cfc77.tar.bz2
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 'revision.c')
-rw-r--r--revision.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/revision.c b/revision.c
index ebd0250..5bcd155 100644
--- a/revision.c
+++ b/revision.c
@@ -868,7 +868,8 @@ int setup_revisions(int argc, const char **argv, struct rev_info *revs, const ch
handle_reflog(revs, flags);
continue;
}
- if (!strcmp(arg, "--walk-reflogs")) {
+ if (!strcmp(arg, "-g") ||
+ !strcmp(arg, "--walk-reflogs")) {
init_reflog_walk(&revs->reflog_info);
continue;
}