Revision addfb21a94fb4e6b9d07b270f7bb3748767a8f38 authored by Junio C Hamano on 12 January 2015, 22:12:42 UTC, committed by Junio C Hamano on 12 January 2015, 22:12:42 UTC
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent def6dd9
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 ...