@matheusbsbs / matheus-bagliano / commits / b24bace5ca
Fork 0

Document --left-right option to rev-list.

Explanation is paraphrased from "577ed5c... rev-list --left-right" Signed-off-by: Junio C Hamano <junkio@cox.net>

Brian Gernhardt committed Apr 5, 2007 at 10:53 UTC b24bace5ca9420033be83ef6c14fb092c9371fe1
2 files changed +32
Documentation/git-rev-list.txt
+31
@@ -21,6 +21,7 @@ SYNOPSIS
21 [ \--stdin ]
22 [ \--topo-order ]
23 [ \--parents ]
24 + [ \--left-right ]
25 [ \--encoding[=<encoding>] ]
26 [ \--(author|committer|grep)=<pattern> ]
27 [ [\--objects | \--objects-edge] [ \--unpacked ] ]
@@ -100,6 +101,36 @@ include::pretty-formats.txt[]
101
102 Print the parents of the commit.
103
104 +--left-right::
105 +
106 + Mark which side of a symmetric diff a commit is reachable from.
107 + Commits from the left side are prefixed with `<` and those from
108 + the right with `>`. If combined with `--boundary`, those
109 + commits are prefixed with `-`.
110 ++
111 +For example, if you have this topology:
112 ++
113 +-----------------------------------------------------------------------
114 + y---b---b branch B
115 + / \ /
116 + / .
117 + / / \
118 + o---x---a---a branch A
119 +-----------------------------------------------------------------------
120 ++
121 +you would get an output line this:
122 ++
123 +-----------------------------------------------------------------------
124 + $ git rev-list --left-right --boundary --pretty=oneline A...B
125 +
126 + >bbbbbbb... 3rd on b
127 + >bbbbbbb... 2nd on b
128 + <aaaaaaa... 3rd on a
129 + <aaaaaaa... 2nd on a
130 + -yyyyyyy... 1st on b
131 + -xxxxxxx... 1st on a
132 +-----------------------------------------------------------------------
133 +
134 Diff Formatting
135 ~~~~~~~~~~~~~~~
136
builtin-rev-list.c
+1
@@ -35,6 +35,7 @@ static const char rev_list_usage[] =
35 " --header | --pretty\n"
36 " --abbrev=nr | --no-abbrev\n"
37 " --abbrev-commit\n"
38 +" --left-right\n"
39 " special purpose:\n"
40 " --bisect"
41 ;