aboutsummaryrefslogtreecommitdiff
path: root/pack.h
diff options
context:
space:
mode:
authorDana L. How <danahow@gmail.com>2007-05-02 12:13:14 -0400
committerShawn O. Pearce <spearce@spearce.org>2007-05-02 13:24:18 -0400
commit8b0eca7c7b73d0dc5d49f400a878d9b781ec4bec (patch)
treeceb7cab66263987f79c156c223870d0efadb1f6c /pack.h
parentdb81e67a7d559544f8464cdfd011208e60b76344 (diff)
downloadgit-8b0eca7c7b73d0dc5d49f400a878d9b781ec4bec.tar.gz
git-8b0eca7c7b73d0dc5d49f400a878d9b781ec4bec.tar.xz
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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/pack.h b/pack.h
index d4d412ccb..d667fb8d5 100644
--- a/pack.h
+++ b/pack.h
@@ -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)