summaryrefslogtreecommitdiff
path: root/revision.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-12-16 23:31:25 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-12-17 18:35:28 (GMT)
commit74bd9029732db28b2fff50de0a190229c6033e02 (patch)
tree136b4527d1126149a7f05576a0d957d28fd79ac5 /revision.c
parent577ed5c20b4ca374626c104f90c88550cf415067 (diff)
downloadgit-74bd9029732db28b2fff50de0a190229c6033e02.zip
git-74bd9029732db28b2fff50de0a190229c6033e02.tar.gz
git-74bd9029732db28b2fff50de0a190229c6033e02.tar.bz2
Teach all of log family --left-right output.
This makes reviewing git log --left-right --merge --no-merges -p a lot more pleasant. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'revision.c')
-rw-r--r--revision.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/revision.c b/revision.c
index 3d989c3..d84f46e 100644
--- a/revision.c
+++ b/revision.c
@@ -853,6 +853,10 @@ int setup_revisions(int argc, const char **argv, struct rev_info *revs, const ch
revs->boundary = 1;
continue;
}
+ if (!strcmp(arg, "--left-right")) {
+ revs->left_right = 1;
+ continue;
+ }
if (!strcmp(arg, "--objects")) {
revs->tag_objects = 1;
revs->tree_objects = 1;