diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-08-04 08:10:32 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-08-04 08:10:32 -0700 |
| commit | 10be1c41bcf5e7cdcd6968c914a9ffd7ce368dbe (patch) | |
| tree | afcfa4fd63a2796d744165616c50d2ddb6eb8251 /t/t6302-for-each-ref-filter.sh | |
| parent | Merge branch 'jt/switch-restore-no-longer-experimental' (diff) | |
| parent | ref-filter: use REF_ITERATOR_SEEK_SET_PREFIX instead of '1' (diff) | |
| download | git-10be1c41bcf5e7cdcd6968c914a9ffd7ce368dbe.tar.gz git-10be1c41bcf5e7cdcd6968c914a9ffd7ce368dbe.zip | |
Merge branch 'kn/for-each-ref-skip-updates'
Code clean-up.
* kn/for-each-ref-skip-updates:
ref-filter: use REF_ITERATOR_SEEK_SET_PREFIX instead of '1'
t6302: add test combining '--start-after' with '--exclude'
for-each-ref: reword the documentation for '--start-after'
for-each-ref: fix documentation argument ordering
ref-cache: use 'size_t' instead of int for length
Diffstat (limited to 't/t6302-for-each-ref-filter.sh')
| -rwxr-xr-x | t/t6302-for-each-ref-filter.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/t/t6302-for-each-ref-filter.sh b/t/t6302-for-each-ref-filter.sh index e097db6b02..9b80ea1e3b 100755 --- a/t/t6302-for-each-ref-filter.sh +++ b/t/t6302-for-each-ref-filter.sh @@ -712,6 +712,25 @@ test_expect_success 'start after, overflow specific reference path' ' test_cmp expect actual ' +test_expect_success 'start after, with exclude pattern' ' + cat >expect <<-\EOF && + refs/tags/annotated-tag + refs/tags/doubly-annotated-tag + refs/tags/doubly-signed-tag + refs/tags/foo1.10 + refs/tags/foo1.3 + refs/tags/foo1.6 + refs/tags/four + refs/tags/one + refs/tags/signed-tag + refs/tags/three + refs/tags/two + EOF + git for-each-ref --format="%(refname)" --start-after=refs/odd/spot \ + --exclude=refs/tags/foo >actual && + test_cmp expect actual +' + test_expect_success 'start after, last reference' ' cat >expect <<-\EOF && EOF |
