diff options
author | Dana L. How <danahow@gmail.com> | 2007-05-02 12:13:14 -0400 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2007-05-02 13:24:18 -0400 |
commit | 8b0eca7c7b73d0dc5d49f400a878d9b781ec4bec (patch) | |
tree | ceb7cab66263987f79c156c223870d0efadb1f6c /pack.h | |
parent | db81e67a7d559544f8464cdfd011208e60b76344 (diff) | |
download | git-8b0eca7c7b73d0dc5d49f400a878d9b781ec4bec.tar.gz |
Create pack-write.c for common pack writing code
Include a generalized fixup_pack_header_footer() in this new file.
Needed by git-repack --max-pack-size feature in a later patchset.
[sp: Moved close(pack_fd) to callers, to support index-pack, and
changed name to better indicate it is for packfiles.]
Signed-off-by: Dana L. How <danahow@gmail.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'pack.h')
-rw-r--r-- | pack.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -44,6 +44,7 @@ struct pack_idx_header { extern int verify_pack(struct packed_git *, int); +extern void fixup_pack_header_footer(int, unsigned char *, const char *, uint32_t); #define PH_ERROR_EOF (-1) #define PH_ERROR_PACK_SIGNATURE (-2) |