diff options
author | Jonathan Tan <jonathantanmy@google.com> | 2017-08-18 15:20:37 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-08-23 15:12:07 -0700 |
commit | f9a8672a81277b83cabd59c6705089351c4f3ec4 (patch) | |
tree | 35cc126bff3151f8ecc74e3bc96b6318370fa526 /sha1_file.c | |
parent | pack: move has_sha1_pack() (diff) | |
download | tgif-f9a8672a81277b83cabd59c6705089351c4f3ec4.tar.xz |
pack: move has_pack_index()
Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sha1_file.c')
-rw-r--r-- | sha1_file.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/sha1_file.c b/sha1_file.c index 32f4867289..7c81790759 100644 --- a/sha1_file.c +++ b/sha1_file.c @@ -1623,14 +1623,6 @@ int force_object_loose(const unsigned char *sha1, time_t mtime) return ret; } -int has_pack_index(const unsigned char *sha1) -{ - struct stat st; - if (stat(sha1_pack_index_name(sha1), &st)) - return 0; - return 1; -} - int has_sha1_file_with_flags(const unsigned char *sha1, int flags) { if (!startup_info->have_repository) |