diff options
author | Junio C Hamano <gitster@pobox.com> | 2023-04-22 01:35:05 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-04-22 01:35:05 +0300 |
commit | b64894c2063e5875bfd95b537eafcb3e1abf46ff (patch) | |
tree | 989d1d734418b366f23738b228b96dcd6ec1acbd /Documentation/git-for-each-ref.txt | |
parent | 9e0d1aa495bd26f4688b915ac5c3cb656c9f7174 (diff) | |
parent | aabfdc9514a51d8d9a2f3afbc29e5044ccf7191b (diff) |
Merge branch 'ow/ref-filter-omit-empty'
"git branch --format=..." and "git format-patch --format=..."
learns "--omit-empty" to hide refs that whose formatting result
becomes an empty string from the output.
* ow/ref-filter-omit-empty:
branch, for-each-ref, tag: add option to omit empty lines
Diffstat (limited to 'Documentation/git-for-each-ref.txt')
-rw-r--r-- | Documentation/git-for-each-ref.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/git-for-each-ref.txt b/Documentation/git-for-each-ref.txt index 0713e49b49..1e215d4e73 100644 --- a/Documentation/git-for-each-ref.txt +++ b/Documentation/git-for-each-ref.txt @@ -98,6 +98,10 @@ OPTIONS --ignore-case:: Sorting and filtering refs are case insensitive. +--omit-empty:: + Do not print a newline after formatted refs where the format expands + to the empty string. + FIELD NAMES ----------- |