Staging
v0.5.1
https://github.com/git/git
Revision 7bbc4e8fdb33e0a8e42e77cc05460d4c4f615f4d authored by Junio C Hamano on 13 February 2014, 21:40:47 UTC, committed by Junio C Hamano on 13 February 2014, 21:41:53 UTC
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 2cd8616
Raw File
Tip revision: 7bbc4e8fdb33e0a8e42e77cc05460d4c4f615f4d authored by Junio C Hamano on 13 February 2014, 21:40:47 UTC
Git 1.8.5.5
Tip revision: 7bbc4e8
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