]> asedeno.scripts.mit.edu Git - git.git/blobdiff - pack.h
t4119: add test for traditional patch and different p_value
[git.git] / pack.h
diff --git a/pack.h b/pack.h
index 821706fbcd6e6989af8f3dcb37eec32e7a519f71..deb427edbe43710dd2b76a3af0dbd87750344103 100644 (file)
--- a/pack.h
+++ b/pack.h
@@ -44,4 +44,9 @@ struct pack_header {
 #define PACK_IDX_SIGNATURE 0xff744f63  /* "\377tOc" */
 
 extern int verify_pack(struct packed_git *, int);
+
+#define PH_ERROR_EOF           (-1)
+#define PH_ERROR_PACK_SIGNATURE        (-2)
+#define PH_ERROR_PROTOCOL      (-3)
+extern int read_pack_header(int fd, struct pack_header *);
 #endif