aboutsummaryrefslogtreecommitdiff
path: root/builtin-rev-list.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-12-16 15:31:25 -0800
committerJunio C Hamano <junkio@cox.net>2006-12-17 10:35:28 -0800
commit74bd9029732db28b2fff50de0a190229c6033e02 (patch)
tree136b4527d1126149a7f05576a0d957d28fd79ac5 /builtin-rev-list.c
parent577ed5c20b4ca374626c104f90c88550cf415067 (diff)
downloadgit-74bd9029732db28b2fff50de0a190229c6033e02.tar.gz
git-74bd9029732db28b2fff50de0a190229c6033e02.tar.xz
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 'builtin-rev-list.c')
-rw-r--r--builtin-rev-list.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/builtin-rev-list.c b/builtin-rev-list.c
index 4364035e1..1bb3a0668 100644
--- a/builtin-rev-list.c
+++ b/builtin-rev-list.c
@@ -45,7 +45,6 @@ static int bisect_list;
static int show_timestamp;
static int hdr_termination;
static const char *header_prefix;
-static int show_left_right;
static void show_commit(struct commit *commit)
{
@@ -55,7 +54,7 @@ static void show_commit(struct commit *commit)
fputs(header_prefix, stdout);
if (commit->object.flags & BOUNDARY)
putchar('-');
- else if (show_left_right) {
+ else if (revs.left_right) {
if (commit->object.flags & SYMMETRIC_LEFT)
putchar('<');
else
@@ -247,10 +246,6 @@ int cmd_rev_list(int argc, const char **argv, const char *prefix)
bisect_list = 1;
continue;
}
- if (!strcmp(arg, "--left-right")) {
- show_left_right = 1;
- continue;
- }
if (!strcmp(arg, "--stdin")) {
if (read_from_stdin++)
die("--stdin given twice?");