Staging
v0.5.1
https://github.com/git/git
Raw File
Tip revision: 2dfb2e07cb0cb979f630643b57dca579a0359a9d authored by Junio C Hamano on 26 March 2015, 18:59:05 UTC
Git 2.4.0-rc0
Tip revision: 2dfb2e0
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