summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLibravatar Jonathan Tan <jonathantanmy@google.com>2017-08-18 15:20:19 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-08-23 15:12:06 -0700
commit0317f45576a0b48c90c4b023fa572a000633946c (patch)
tree987b83cab92be9282e64c7011b2008884f373a51 /builtin
parentpack: move pack_report() (diff)
downloadtgif-0317f45576a0b48c90c4b023fa572a000633946c.tar.xz
pack: move open_pack_index(), parse_pack_index()
alloc_packed_git() in packfile.c is duplicated from sha1_file.c. In a subsequent commit, alloc_packed_git() will be removed from sha1_file.c. Signed-off-by: Jonathan Tan <jonathantanmy@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
-rw-r--r--builtin/count-objects.c1
-rw-r--r--builtin/fsck.c1
-rw-r--r--builtin/pack-objects.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/builtin/count-objects.c b/builtin/count-objects.c
index 1d82e61f2a..33343818c8 100644
--- a/builtin/count-objects.c
+++ b/builtin/count-objects.c
@@ -10,6 +10,7 @@
#include "builtin.h"
#include "parse-options.h"
#include "quote.h"
+#include "packfile.h"
static unsigned long garbage;
static off_t size_garbage;
diff --git a/builtin/fsck.c b/builtin/fsck.c
index b0964a8d34..338f3ce20b 100644
--- a/builtin/fsck.c
+++ b/builtin/fsck.c
@@ -15,6 +15,7 @@
#include "progress.h"
#include "streaming.h"
#include "decorate.h"
+#include "packfile.h"
#define REACHABLE 0x0001
#define SEEN 0x0002
diff --git a/builtin/pack-objects.c b/builtin/pack-objects.c
index c753e9237a..82ad6e0c81 100644
--- a/builtin/pack-objects.c
+++ b/builtin/pack-objects.c
@@ -25,6 +25,7 @@
#include "sha1-array.h"
#include "argv-array.h"
#include "mru.h"
+#include "packfile.h"
static const char *pack_usage[] = {
N_("git pack-objects --stdout [<options>...] [< <ref-list> | < <object-list>]"),