diff options
author | Junio C Hamano <junkio@cox.net> | 2007-06-02 12:18:51 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-06-02 12:18:51 -0700 |
commit | 17c2929aa2ed999cbefa75ca5e933e1bf53a95bf (patch) | |
tree | ae29ccac1e4fd717567db0f1dbabebeee3046d6c /cache.h | |
parent | 9b07873a52cc0243c2eddfac2e9c514152b96fb7 (diff) | |
parent | bc8e478a285ff549a3e5182461b064313d400de3 (diff) | |
download | git-17c2929aa2ed999cbefa75ca5e933e1bf53a95bf.tar.gz |
Merge branch 'sp/pack'
* sp/pack:
Style nit - don't put space after function names
Ensure the pack index is opened before access
Simplify index access condition in count-objects, pack-redundant
Test for recent rev-parse $abbrev_sha1 regression
rev-parse: Identify short sha1 sums correctly.
Attempt to delay prepare_alt_odb during get_sha1
Micro-optimize prepare_alt_odb
Lazily open pack index files on demand
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -483,10 +483,11 @@ extern struct packed_git *find_sha1_pack(const unsigned char *sha1, struct packed_git *packs); extern void pack_report(void); +extern int open_pack_index(struct packed_git *); extern unsigned char* use_pack(struct packed_git *, struct pack_window **, off_t, unsigned int *); extern void unuse_pack(struct pack_window **); extern struct packed_git *add_packed_git(const char *, int, int); -extern const unsigned char *nth_packed_object_sha1(const struct packed_git *, uint32_t); +extern const unsigned char *nth_packed_object_sha1(struct packed_git *, uint32_t); extern off_t find_pack_entry_one(const unsigned char *, struct packed_git *); extern void *unpack_entry(struct packed_git *, off_t, enum object_type *, unsigned long *); extern unsigned long unpack_object_header_gently(const unsigned char *buf, unsigned long len, enum object_type *type, unsigned long *sizep); |