]>
git.ipfire.org Git - thirdparty/git.git/blob - t/helper/test-index-version.c
2 #include "read-cache-ll.h"
4 int cmd__index_version(int argc UNUSED
, const char **argv UNUSED
)
6 struct cache_header hdr
;
9 memset(&hdr
,0,sizeof(hdr
));
10 if (read(0, &hdr
, sizeof(hdr
)) != sizeof(hdr
))
12 version
= ntohl(hdr
.hdr_version
);
13 printf("%d\n", version
);