Update documentation for "git branch", "git for-each-ref" and "git tag" with notes explaining what happens when passed multiple --contains or --no-contains filters, e.g.: When combining multiple `--contains` and `--no-contains` filters, `git for-each-ref` shows refs containing at least one of the named `--contains` commits and none of the named `--no-contains` commits. This behavior is useful to document prior to enabling multiple merged/no-merged filters, in order to demonstrate consistent behavior between merged/no-merged and contains/no-contains filters. --- Documentation/git-branch.txt | 4 ++++ Documentation/git-for-each-ref.txt | 7 +++++++ Documentation/git-tag.txt | 7 +++++++ 3 files changed, 18 insertions(+) diff --git a/Documentation/git-branch.txt b/Documentation/git-branch.txt index 03c0824d52..2a36d29929 100644 --- a/Documentation/git-branch.txt +++ b/Documentation/git-branch.txt @@ -370,6 +370,10 @@ serve four related but different purposes: - `--no-merged` is used to find branches which are candidates for merging into HEAD, since those branches are not fully contained by HEAD. +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. + SEE ALSO -------- linkgit:git-check-ref-format[1], diff --git a/Documentation/git-for-each-ref.txt b/Documentation/git-for-each-ref.txt index 616ce46087..e5f0226273 100644 --- a/Documentation/git-for-each-ref.txt +++ b/Documentation/git-for-each-ref.txt @@ -408,6 +408,13 @@ Note also that multiple copies of an object may be present in the object database; in this case, it is undefined which copy's size or delta base will be reported. +NOTES +----- + +When combining multiple `--contains` and `--no-contains` filters, +`git for-each-ref` shows refs containing at least one of the named +`--contains` commits and none of the named `--no-contains` commits. + SEE ALSO -------- linkgit:git-show-ref[1] diff --git a/Documentation/git-tag.txt b/Documentation/git-tag.txt index f6d9791780..adfeab7a93 100644 --- a/Documentation/git-tag.txt +++ b/Documentation/git-tag.txt @@ -377,6 +377,13 @@ $ GIT_COMMITTER_DATE="2006-10-02 10:31" git tag -s v1.0.1 include::date-formats.txt[] +NOTES +----- + +When combining multiple `--contains` and `--no-contains` filters, +`git tag` shows tags containing at least one of the named `--contains` +commits and none of the named `--no-contains` commits. + SEE ALSO -------- linkgit:git-check-ref-format[1]. -- 2.24.3 (Apple Git-128)