Revision 07586ebd4fd2ba273a1dae60403aa5affc352e29 authored by Michael J Gruber on 26 January 2015, 15:34:32 UTC, committed by Ralf Thielow on 26 January 2015, 18:36:04 UTC
Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net> Signed-off-by: Ralf Thielow <ralf.thielow@gmail.com>
1 parent 2f334c6
test-index-version.c
#include "cache.h"
int main(int argc, char **argv)
{
struct cache_header hdr;
int version;
memset(&hdr,0,sizeof(hdr));
if (read(0, &hdr, sizeof(hdr)) != sizeof(hdr))
return 0;
version = ntohl(hdr.hdr_version);
printf("%d\n", version);
return 0;
}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...