Re: [PATCH] rev-list/log: document logic with several limiting options
Michael J Gruber <git@drmicha.warpmail.net> writes:
Show 7 quoted lines
> 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 <git@drmicha.warpmail.net>
> ---
> 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.
Show 14 quoted lines
>
> 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"?