https://github.com/git/git
Raw File
Tip revision: 754884255bb580df159e58defa81cdd30b5c430c authored by Junio C Hamano on 04 January 2016, 22:08:04 UTC
Git 2.7
Tip revision: 7548842
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