Revision 456a4c08b8d8ddefda939014c15877ace3e3f499 authored by Junio C Hamano on 06 June 2011, 18:40:14 UTC, committed by Junio C Hamano on 06 June 2011, 18:40:14 UTC
* jk/diff-not-so-quick:
  diff: futureproof "stop feeding the backend early" logic
  diff_tree: disable QUICK optimization with diff filter

Conflicts:
	diff.c
2 parent s 6c92972 + 28b9264
Raw File
test-index-version.c
#include "cache.h"

int main(int argc, const 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