summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2016-10-26 13:14:47 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-10-26 13:14:47 -0700
commit9fcd14491d32d76c3533ba0b1dfe7cabf31fe852 (patch)
tree4411906265b2adcf0bac4d2b68bece4828ec6371 /cache.h
parentMerge branch 'jk/merge-base-fork-point-without-reflog' (diff)
parentfetch: use "quick" has_sha1_file for tag following (diff)
downloadtgif-9fcd14491d32d76c3533ba0b1dfe7cabf31fe852.tar.xz
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 'cache.h')
-rw-r--r--cache.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 5f2f03090f..f7ee414563 100644
--- a/cache.h
+++ b/cache.h
@@ -1157,6 +1157,7 @@ static inline int has_sha1_file(const unsigned char *sha1)
/* Same as the above, except for struct object_id. */
extern int has_object_file(const struct object_id *oid);
+extern int has_object_file_with_flags(const struct object_id *oid, int flags);
/*
* Return true iff an alternate object database has a loose object