summaryrefslogtreecommitdiff
path: root/sha1_file.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-10-26 20:14:47 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-10-26 20:14:47 (GMT)
commit9fcd14491d32d76c3533ba0b1dfe7cabf31fe852 (patch)
tree4411906265b2adcf0bac4d2b68bece4828ec6371 /sha1_file.c
parent92657ea597310c05b8f4ac3496ba90496286b5d6 (diff)
parent5827a03545663f6d6b491a35edb313900608568b (diff)
downloadgit-9fcd14491d32d76c3533ba0b1dfe7cabf31fe852.zip
git-9fcd14491d32d76c3533ba0b1dfe7cabf31fe852.tar.gz
git-9fcd14491d32d76c3533ba0b1dfe7cabf31fe852.tar.bz2
Merge branch 'jk/fetch-quick-tag-following'
When fetching from a remote that has many tags that are irrelevant to branches we are following, we used to waste way too many cycles when checking if the object pointed at by a tag (that we are not going to fetch!) exists in our repository too carefully. * jk/fetch-quick-tag-following: fetch: use "quick" has_sha1_file for tag following
Diffstat (limited to 'sha1_file.c')
-rw-r--r--sha1_file.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sha1_file.c b/sha1_file.c
index 266152d..2eda929 100644
--- a/sha1_file.c
+++ b/sha1_file.c
@@ -3335,6 +3335,11 @@ int has_object_file(const struct object_id *oid)
return has_sha1_file(oid->hash);
}
+int has_object_file_with_flags(const struct object_id *oid, int flags)
+{
+ return has_sha1_file_with_flags(oid->hash, flags);
+}
+
static void check_tree(const void *buf, size_t size)
{
struct tree_desc desc;