diff options
author | Linus Torvalds <torvalds@osdl.org> | 2005-10-13 15:38:28 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-10-13 15:38:28 -0700 |
commit | 9d835df246e81a6a03e3f633280c45e683e4c673 (patch) | |
tree | a878e0f1ab86c47489300b4ae23bc6f8736faddb /cache.h | |
parent | 73319032c8d2b2c73138d5caee1d2838fe1305d2 (diff) | |
download | git-9d835df246e81a6a03e3f633280c45e683e4c673.tar.gz git-9d835df246e81a6a03e3f633280c45e683e4c673.tar.xz |
Keep track of whether a pack is local or not
If we want to re-pack just local packfiles, we need to know whether a
particular object is local or not.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -313,6 +313,7 @@ extern struct packed_git { void *pack_base; unsigned int pack_last_used; unsigned int pack_use_cnt; + int pack_local; unsigned char sha1[20]; char pack_name[0]; /* something like ".git/objects/pack/xxxxx.pack" */ } *packed_git; @@ -352,7 +353,7 @@ extern struct packed_git *find_sha1_pack(const unsigned char *sha1, extern int use_packed_git(struct packed_git *); extern void unuse_packed_git(struct packed_git *); -extern struct packed_git *add_packed_git(char *, int); +extern struct packed_git *add_packed_git(char *, int, int); extern int num_packed_objects(const struct packed_git *p); extern int nth_packed_object_sha1(const struct packed_git *, int, unsigned char*); extern int find_pack_entry_one(const unsigned char *, struct pack_entry *, struct packed_git *); |