Staging
v0.5.1
https://github.com/git/git
Revision 34d5217584ee4722d0c0b07ed6c8f1f01ad157c3 authored by Junio C Hamano on 28 May 2014, 22:50:22 UTC, committed by Junio C Hamano on 30 May 2014, 17:13:41 UTC
This is expected to be the final maintenance release for 1.9 series,
merging the remaining fixes that are relevant and are already in 2.0.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 12188a8
Raw File
Tip revision: 34d5217584ee4722d0c0b07ed6c8f1f01ad157c3 authored by Junio C Hamano on 28 May 2014, 22:50:22 UTC
Git 1.9.4
Tip revision: 34d5217
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;
}
back to top