diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-10-07 16:27:56 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-10-07 16:27:56 +0900 |
commit | 43c9e7e365d7a8961767d0bd4a305ca378800a2a (patch) | |
tree | 342920df153ff2430522658d9338f2d8734f01fe /t/t6300-for-each-ref.sh | |
parent | 2a5aa826eec2eec64b4065f599ee7fb613a871ba (diff) | |
parent | bea4dbeafda3ddc4404f2e94dce0b66a4105399a (diff) | |
download | git-43c9e7e365d7a8961767d0bd4a305ca378800a2a.tar.gz |
Merge branch 'tb/ref-filter-empty-modifier'
In the "--format=..." option of the "git for-each-ref" command (and
its friends, i.e. the listing mode of "git branch/tag"), "%(atom:)"
(e.g. "%(refname:)", "%(body:)" used to error out. Instead, treat
them as if the colon and an empty string that follows it were not
there.
* tb/ref-filter-empty-modifier:
ref-filter.c: pass empty-string as NULL to atom parsers
Diffstat (limited to 't/t6300-for-each-ref.sh')
-rwxr-xr-x | t/t6300-for-each-ref.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/t/t6300-for-each-ref.sh b/t/t6300-for-each-ref.sh index 6358134805..a6f51a5003 100755 --- a/t/t6300-for-each-ref.sh +++ b/t/t6300-for-each-ref.sh @@ -51,6 +51,7 @@ test_atom() { } test_atom head refname refs/heads/master +test_atom head refname: refs/heads/master test_atom head refname:short master test_atom head refname:lstrip=1 heads/master test_atom head refname:lstrip=2 master |