summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJonathan Tan <jonathantanmy@google.com>2017-08-18 22:20:26 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-08-23 22:12:07 (GMT)
commit0abe14f6a5b7681b4ea02d1bd0a64332587ae053 (patch)
tree0197f856e42a9eda81b1addf3d2ec9effb5c3549 /cache.h
parente65f186242ccda24616e40681f46ad8d33da63e2 (diff)
downloadgit-0abe14f6a5b7681b4ea02d1bd0a64332587ae053.zip
git-0abe14f6a5b7681b4ea02d1bd0a64332587ae053.tar.gz
git-0abe14f6a5b7681b4ea02d1bd0a64332587ae053.tar.bz2
pack: move {,re}prepare_packed_git and approximate_object_count
Signed-off-by: Jonathan Tan <jonathantanmy@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/cache.h b/cache.h
index 51b2318..a9f4551 100644
--- a/cache.h
+++ b/cache.h
@@ -1605,21 +1605,6 @@ struct pack_entry {
struct packed_git *p;
};
-/* A hook to report invalid files in pack directory */
-#define PACKDIR_FILE_PACK 1
-#define PACKDIR_FILE_IDX 2
-#define PACKDIR_FILE_GARBAGE 4
-extern void (*report_garbage)(unsigned seen_bits, const char *path);
-
-extern void prepare_packed_git(void);
-extern void reprepare_packed_git(void);
-
-/*
- * Give a rough count of objects in the repository. This sacrifices accuracy
- * for speed.
- */
-unsigned long approximate_object_count(void);
-
extern struct packed_git *find_sha1_pack(const unsigned char *sha1,
struct packed_git *packs);