Skip to content

Commit eabdcd4

Browse files
committed
Merge branch 'jt/packmigrate'
Code movement to make it easier to hack later. * jt/packmigrate: (23 commits) pack: move for_each_packed_object() pack: move has_pack_index() pack: move has_sha1_pack() pack: move find_pack_entry() and make it global pack: move find_sha1_pack() pack: move find_pack_entry_one(), is_pack_valid() pack: move check_pack_index_ptr(), nth_packed_object_offset() pack: move nth_packed_object_{sha1,oid} pack: move clear_delta_base_cache(), packed_object_info(), unpack_entry() pack: move unpack_object_header() pack: move get_size_from_delta() pack: move unpack_object_header_buffer() pack: move {,re}prepare_packed_git and approximate_object_count pack: move install_packed_git() pack: move add_packed_git() pack: move unuse_pack() pack: move use_pack() pack: move pack-closing functions pack: move release_pack_memory() pack: move open_pack_index(), parse_pack_index() ...
2 parents f2dd90f + 7709f46 commit eabdcd4

37 files changed

+2354
-2287
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -817,6 +817,7 @@ LIB_OBJS += notes-merge.o
817817
LIB_OBJS += notes-utils.o
818818
LIB_OBJS += object.o
819819
LIB_OBJS += oidset.o
820+
LIB_OBJS += packfile.o
820821
LIB_OBJS += pack-bitmap.o
821822
LIB_OBJS += pack-bitmap-write.o
822823
LIB_OBJS += pack-check.o

builtin/am.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
#include "mailinfo.h"
3232
#include "apply.h"
3333
#include "string-list.h"
34+
#include "packfile.h"
3435

3536
/**
3637
* Returns 1 if the file is empty or does not exist, 0 otherwise.

builtin/cat-file.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include "streaming.h"
1313
#include "tree-walk.h"
1414
#include "sha1-array.h"
15+
#include "packfile.h"
1516

1617
struct batch_options {
1718
int enabled;

builtin/clone.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include "remote.h"
2626
#include "run-command.h"
2727
#include "connected.h"
28+
#include "packfile.h"
2829

2930
/*
3031
* Overall FIXMEs:

builtin/count-objects.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include "builtin.h"
1111
#include "parse-options.h"
1212
#include "quote.h"
13+
#include "packfile.h"
1314

1415
static unsigned long garbage;
1516
static off_t size_garbage;

builtin/fetch.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include "connected.h"
1818
#include "argv-array.h"
1919
#include "utf8.h"
20+
#include "packfile.h"
2021

2122
static const char * const builtin_fetch_usage[] = {
2223
N_("git fetch [<options>] [<repository> [<refspec>...]]"),

builtin/fsck.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include "progress.h"
1616
#include "streaming.h"
1717
#include "decorate.h"
18+
#include "packfile.h"
1819

1920
#define REACHABLE 0x0001
2021
#define SEEN 0x0002

builtin/gc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include "sigchain.h"
2020
#include "argv-array.h"
2121
#include "commit.h"
22+
#include "packfile.h"
2223

2324
#define FAILED_RUN "failed to run %s"
2425

builtin/index-pack.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include "exec_cmd.h"
1313
#include "streaming.h"
1414
#include "thread-utils.h"
15+
#include "packfile.h"
1516

1617
static const char index_pack_usage[] =
1718
"git index-pack [-v] [-o <index-file>] [--keep | --keep=<msg>] [--verify] [--strict] (<pack-file> | --stdin [--fix-thin] [<pack-file>])";

builtin/merge.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
#include "gpg-interface.h"
3333
#include "sequencer.h"
3434
#include "string-list.h"
35+
#include "packfile.h"
3536

3637
#define DEFAULT_TWOHEAD (1<<0)
3738
#define DEFAULT_OCTOPUS (1<<1)

0 commit comments

Comments
 (0)