gitweb: Add author and committer email extraction to parse_commit
[git/haiku.git] / pack.h
blob4814800f2806a245a675ea9832f894dc95b27b89
1 #ifndef PACK_H
2 #define PACK_H
4 #include "object.h"
6 /*
7 * Packed object header
8 */
9 #define PACK_SIGNATURE 0x5041434b /* "PACK" */
10 #define PACK_VERSION 2
11 #define pack_version_ok(v) ((v) == htonl(2) || (v) == htonl(3))
12 struct pack_header {
13 unsigned int hdr_signature;
14 unsigned int hdr_version;
15 unsigned int hdr_entries;
18 extern int verify_pack(struct packed_git *, int);
19 #endif