Staging
v0.5.1
https://github.com/git/git
Revision ca00f80b58d679e59fc271650f68cd25cdb72b09 authored by Junio C Hamano on 27 July 2015, 19:25:42 UTC, committed by Junio C Hamano on 27 July 2015, 19:25:42 UTC
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent caac7a3
Raw File
Tip revision: ca00f80b58d679e59fc271650f68cd25cdb72b09 authored by Junio C Hamano on 27 July 2015, 19:25:42 UTC
Git 2.4.7
Tip revision: ca00f80
test-read-cache.c
#include "cache.h"

int main (int argc, char **argv)
{
	int i, cnt = 1;
	if (argc == 2)
		cnt = strtol(argv[1], NULL, 0);
	for (i = 0; i < cnt; i++) {
		read_cache();
		discard_cache();
	}
	return 0;
}
back to top