Merge branch 'kn/for-each-tag'
authorJunio C Hamano <gitster@pobox.com>
Mon, 26 Oct 2015 22:55:22 +0000 (15:55 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 26 Oct 2015 22:55:22 +0000 (15:55 -0700)
Recent update to "git tag --contains" caused a performance
regression.

* kn/for-each-tag:
tag.c: use the correct algorithm for the '--contains' option

builtin/tag.c
index 566078773fe82a51d850a4def8d63835d6310b2e..8db8c87e57ef05edadce8de19316572498c40753 100644 (file)
@@ -52,6 +52,7 @@ static int list_tags(struct ref_filter *filter, struct ref_sorting *sorting, con
        }
 
        verify_ref_format(format);
+       filter->with_commit_tag_algo = 1;
        filter_refs(&array, filter, FILTER_REFS_TAGS);
        ref_array_sort(sorting, &array);