Re: [PATCH v3 2/3] Doc: cover multiple contains/no-contains filters
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 14, 2020, 20:07 UTC
- Message-ID
- <xmqq5z8gktq2.fsf@gitster.c.googlers.com>
- In-Reply-To
- <CAPig+cRaz+HPNW_WFX7UqcqtRwG_Td59LkXWF6HHoYOO1M6=bg@mail.gmail.com>
Eric Sunshine <sunshine@sunshineco.com> writes:
Show 17 quoted lines
>> diff --git a/Documentation/git-branch.txt b/Documentation/git-branch.txt >> @@ -370,6 +370,10 @@ serve four related but different purposes: >> +When combining multiple `--contains` and `--no-contains` filters, >> +`git branch` shows branches containing at least one of the named >> +`--contains` commits and none of the named `--no-contains` commits. > > This is repeated nearly verbatim in the other two documentation pages. > It makes one wonder if it can be generalized and placed in its own > file which is included in the other documents via > `include::contains.txt[]`. Perhaps like this: > > When combining multiple `--contains` and `--no-contains` filters, > `git branch` shows references containing at least one of the named > `--contains` commits and none of the named `--no-contains` > commits. > > But perhaps that's too generic?
Replace `git branch` with "this command" and make it even more generic? Or eliminate the subject by going passive, e.g.
Only references that contain at least one of the '--contains'
commits but contain none of the '--no-contains' commits are
shownor somesuch?