X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=pack.h;h=9dafa2b6d2c76919594218b12a2a36bd9067f2b7;hb=01df529722618a78d2acf6159c7b1e65f565cabc;hp=657deaa3f43ebe8627caa93798dd8ae5d956601d;hpb=6b7242aa1acc3c7835f80522914ffc4b2e789a29;p=git.git diff --git a/pack.h b/pack.h index 657deaa3..9dafa2b6 100644 --- a/pack.h +++ b/pack.h @@ -21,6 +21,7 @@ enum object_type { */ #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;