ref-filter: add tests for objectsize:disk
Test new formatting atom. Signed-off-by: Olga Telezhnaia <olyatelezhnaya@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Olga Telezhnaya committed
Dec 24, 2018 at 13:24 UTC
f4ee22b52620827ccd0ec38e6cbc301b8aabded8
1 file changed
+3
t/t6300-for-each-ref.sh
+3
@@ -83,6 +83,7 @@ test_atom head push:strip=1 remotes/myfork/master
83
test_atom head push:strip=-1 master
84
test_atom head objecttype commit
85
test_atom head objectsize 171
86
+test_atom head objectsize:disk 138
87
test_atom head objectname $(git rev-parse refs/heads/master)
88
test_atom head objectname:short $(git rev-parse --short refs/heads/master)
89
test_atom head objectname:short=1 $(git rev-parse --short=1 refs/heads/master)
@@ -124,6 +125,8 @@ test_atom tag upstream ''
125
test_atom tag push ''
126
test_atom tag objecttype tag
127
test_atom tag objectsize 154
128
+test_atom tag objectsize:disk 138
129
+test_atom tag '*objectsize:disk' 138
130
test_atom tag objectname $(git rev-parse refs/tags/testtag)
131
test_atom tag objectname:short $(git rev-parse --short refs/tags/testtag)
132
test_atom head objectname:short=1 $(git rev-parse --short=1 refs/heads/master)