summaryrefslogtreecommitdiffstats
path: root/sha1_file.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-10-28 18:01:17 +0200
committerJunio C Hamano <gitster@pobox.com>2016-10-28 18:01:17 +0200
commit39000e849970a554a257577dcb2fb844a523a1d1 (patch)
tree26911732b4cb4f2c6389cbb7bbfb437c9e406025 /sha1_file.c
parentMerge branch 'jk/merge-base-fork-point-without-reflog' into maint (diff)
parentfetch: use "quick" has_sha1_file for tag following (diff)
downloadgit-39000e849970a554a257577dcb2fb844a523a1d1.tar.xz
git-39000e849970a554a257577dcb2fb844a523a1d1.zip
Merge branch 'jk/fetch-quick-tag-following' into maint
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 7a4f8f8661..727a9769fb 100644
--- a/sha1_file.c
+++ b/sha1_file.c
@@ -3231,6 +3231,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;