From: Junio C Hamano Date: Tue, 11 Sep 2012 16:22:34 GMT Subject: Re: [PATCH] rev-list/log: document logic with several limiting options Message-ID: <7vsjaoil6d.fsf@alter.siamese.dyndns.org> In-Reply-To: Michael J Gruber writes: > The current behavior is probably as useful as it is confusing. In any > case it is going to stay. So, document it. > > Signed-off-by: Michael J Gruber > --- > I would have written a test but don't really know where to stick it in. > rev-list has many small tests where it doesn't fit. "git log" would be the more natural place, I would say. > > Documentation/rev-list-options.txt | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/Documentation/rev-list-options.txt b/Documentation/rev-list-options.txt > index 5436eba..9c13df3 100644 > --- a/Documentation/rev-list-options.txt > +++ b/Documentation/rev-list-options.txt > @@ -6,6 +6,12 @@ special notations explained in the description, additional commit > limiting may be applied. Note that they are applied before commit > ordering and formatting options, such as '--reverse'. > > +All occurrences of the same option are ORed: '--grep=foo --grep=bar' > +limits to commits which match at least one of these conditions. How would this interact with "--all-match"?