summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2017-10-18 14:19:06 +0900
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-10-18 14:19:06 +0900
commitd9e85860567cdbf867a9af20997735f06db12ec5 (patch)
tree5a6dab15a2b0d1b4aa802ab09696ef94d7103944 /t
parentMerge branch 'rb/compat-poll-fix' into maint (diff)
parentref-filter.c: pass empty-string as NULL to atom parsers (diff)
downloadtgif-d9e85860567cdbf867a9af20997735f06db12ec5.tar.xz
Merge branch 'tb/ref-filter-empty-modifier' into maint
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')
-rwxr-xr-xt/t6300-for-each-ref.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/t6300-for-each-ref.sh b/t/t6300-for-each-ref.sh
index 2274a4b733..edc1bd8eab 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