summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 265d528)
raw | patch | inline | side by side (parent: 265d528)
author | Brian Gernhardt <benji@silverinsanity.com> | |
Thu, 5 Apr 2007 14:53:07 +0000 (10:53 -0400) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 5 Apr 2007 21:12:41 +0000 (14:12 -0700) |
Explanation is paraphrased from "577ed5c... rev-list --left-right"
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/git-rev-list.txt | patch | blob | history | |
builtin-rev-list.c | patch | blob | history |
index 4f145eaba47175e48dd592ffe5018be5cb4cb375..11ce395c982d5eb217d13441c2668884cc371d22 100644 (file)
[ \--stdin ]
[ \--topo-order ]
[ \--parents ]
+ [ \--left-right ]
[ \--encoding[=<encoding>] ]
[ \--(author|committer|grep)=<pattern> ]
[ [\--objects | \--objects-edge] [ \--unpacked ] ]
Print the parents of the commit.
+--left-right::
+
+ Mark which side of a symmetric diff a commit is reachable from.
+ Commits from the left side are prefixed with `<` and those from
+ the right with `>`. If combined with `--boundary`, those
+ commits are prefixed with `-`.
++
+For example, if you have this topology:
++
+-----------------------------------------------------------------------
+ y---b---b branch B
+ / \ /
+ / .
+ / / \
+ o---x---a---a branch A
+-----------------------------------------------------------------------
++
+you would get an output line this:
++
+-----------------------------------------------------------------------
+ $ git rev-list --left-right --boundary --pretty=oneline A...B
+
+ >bbbbbbb... 3rd on b
+ >bbbbbbb... 2nd on b
+ <aaaaaaa... 3rd on a
+ <aaaaaaa... 2nd on a
+ -yyyyyyy... 1st on b
+ -xxxxxxx... 1st on a
+-----------------------------------------------------------------------
+
Diff Formatting
~~~~~~~~~~~~~~~
diff --git a/builtin-rev-list.c b/builtin-rev-list.c
index 51858e3233a74a2a5cc7e96e7dc5d9786fecc326..b86e7ca8b18c7d11886dd3a1b4ca0eba95af264a 100644 (file)
--- a/builtin-rev-list.c
+++ b/builtin-rev-list.c
" --header | --pretty\n"
" --abbrev=nr | --no-abbrev\n"
" --abbrev-commit\n"
+" --left-right\n"
" special purpose:\n"
" --bisect"
;