projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make index file locking code reusable to others.
[git.git]
/
pack.h
diff --git
a/pack.h
b/pack.h
index
657deaa
..
694e0c5
100644
(file)
--- a/
pack.h
+++ b/
pack.h
@@
-21,6
+21,7
@@
enum object_type {
*/
#define PACK_SIGNATURE 0x5041434b /* "PACK" */
#define PACK_VERSION 2
*/
#define PACK_SIGNATURE 0x5041434b /* "PACK" */
#define PACK_VERSION 2
+#define pack_version_ok(v) ((v) == htonl(2) || (v) == htonl(3))
struct pack_header {
unsigned int hdr_signature;
unsigned int hdr_version;
struct pack_header {
unsigned int hdr_signature;
unsigned int hdr_version;
@@
-28,5
+29,7
@@
struct pack_header {
};
extern int verify_pack(struct packed_git *, int);
};
extern int verify_pack(struct packed_git *, int);
-
+extern int check_reuse_pack_delta(struct packed_git *, unsigned long,
+ unsigned char *, unsigned long *,
+ enum object_type *);
#endif
#endif