path: root/pack.h
diff options
authorNicolas Pitre <>2010-02-23 20:02:37 (GMT)
committerJunio C Hamano <>2010-02-23 21:10:56 (GMT)
commitf965c525a4d04837b1b7ed43e3fa2dc8c0df4e2b (patch)
tree7b8cf530834827b86b3bd7ab45e827ab24ce9be7 /pack.h
parent1b22b6c897efa8aec6eeb51f72a73d507d5e336f (diff)
move encode_in_pack_object_header() to a better place
Commit 1b22b6c897 made duplicated versions of encode_header() into a common version called encode_in_pack_object_header(). There is however a better location that sha1_file.c for such a function though, as sha1_file.c contains nothing related to the creation of packs, and it is quite populated already. Also the comment that was moved to the header file should really remain near the function as it covers implementation details and provides no information about the actual function interface. Signed-off-by: Nicolas Pitre <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'pack.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/pack.h b/pack.h
index b759a23..d268c01 100644
--- a/pack.h
+++ b/pack.h
@@ -60,6 +60,7 @@ extern int check_pack_crc(struct packed_git *p, struct pack_window **w_curs, off
extern int verify_pack(struct packed_git *);
extern void fixup_pack_header_footer(int, unsigned char *, const char *, uint32_t, unsigned char *, off_t);
extern char *index_pack_lockfile(int fd);
+extern int encode_in_pack_object_header(enum object_type, uintmax_t, unsigned char *);
#define PH_ERROR_EOF (-1)