From: Brian Gernhardt Date: Thu, 05 Apr 2007 14:53:07 GMT Subject: [PATCH] Document --left-right option to rev-list. Message-ID: <20070405145307.GA18458@174.242.249.10.in-addr.arpa> In-Reply-To: <7vwt0rqftv.fsf@assigned-by-dhcp.cox.net> Explanation is paraphrased from "577ed5c... rev-list --left-right" --- Junio C Hamano writes: > David Kågedal writes: > >> "git log -Sleft-right" will actually give me the documentation I want, >> since the docs are written but only put in the commit message. > > Fair enough. Perhaps the list can help out ;-). Like this? :-) Documentation/git-rev-list.txt | 19 +++++++++++++++++++ builtin-rev-list.c | 1 + 2 files changed, 20 insertions(+), 0 deletions(-) diff --git a/Documentation/git-rev-list.txt b/Documentation/git-rev-list.txt index 3fa45b8..5b33865 100644 --- a/Documentation/git-rev-list.txt +++ b/Documentation/git-rev-list.txt @@ -21,6 +21,7 @@ SYNOPSIS [ \--stdin ] [ \--topo-order ] [ \--parents ] + [ \--left-right ] [ \--encoding[=] ] [ \--(author|committer|grep)= ] [ [\--objects | \--objects-edge] [ \--unpacked ] ] @@ -101,6 +102,24 @@ include::pretty-formats.txt[] 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: + +----------------------------------------------------------------------- + $ git rev-list --left-right --boundary --pretty=oneline A...B + + >bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb 3rd on b + >bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb 2nd on b +