summaryrefslogtreecommitdiff
path: root/sha1_file.c
diff options
context:
space:
mode:
authorLibravatar Jonathan Tan <jonathantanmy@google.com>2017-08-18 15:20:25 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-08-23 15:12:07 -0700
commite65f186242ccda24616e40681f46ad8d33da63e2 (patch)
tree64cd4b0b0bfad68916dbfa65b36ed7987122a7c1 /sha1_file.c
parentpack: move add_packed_git() (diff)
downloadtgif-e65f186242ccda24616e40681f46ad8d33da63e2.tar.xz
pack: move install_packed_git()
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.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/sha1_file.c b/sha1_file.c
index a5e13e0d98..13479a060c 100644
--- a/sha1_file.c
+++ b/sha1_file.c
@@ -719,15 +719,6 @@ void *xmmap(void *start, size_t length,
return ret;
}
-void install_packed_git(struct packed_git *pack)
-{
- if (pack->pack_fd != -1)
- pack_open_fds++;
-
- pack->next = packed_git;
- packed_git = pack;
-}
-
void (*report_garbage)(unsigned seen_bits, const char *path);
static void report_helper(const struct string_list *list,