diff options
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | 2007-01-24 15:05:16 +0100 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-01-24 15:13:47 -0800 |
commit | 084ae0a7bd8a13dea7731dd7b6bf37f08c1cfc77 (patch) | |
tree | debf27e7cf50c04190b1759caa3117e60c78edd5 /revision.c | |
parent | e955ae957c401cb541f23d46af66c9b3d5b8ffe9 (diff) | |
download | git-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 'revision.c')
-rw-r--r-- | revision.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/revision.c b/revision.c index ebd025064c..5bcd155e21 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; } |