Merge branch 'tb/ref-filter-empty-modifier'
authorJunio C Hamano <gitster@pobox.com>
Sat, 7 Oct 2017 07:27:56 +0000 (16:27 +0900)
committerJunio C Hamano <gitster@pobox.com>
Sat, 7 Oct 2017 07:27:56 +0000 (16:27 +0900)
commit43c9e7e365d7a8961767d0bd4a305ca378800a2a
tree342920df153ff2430522658d9338f2d8734f01fe
parent2a5aa826eec2eec64b4065f599ee7fb613a871ba
parentbea4dbeafda3ddc4404f2e94dce0b66a4105399a
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
ref-filter.c
t/t6300-for-each-ref.sh