projects
/
git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Merge branch 'sb/blame-color'
[git]
/
t
/
helper
/
test-read-cache.c
1
#include "test-tool.h"
2
#include "cache.h"
3
4
int cmd__read_cache(int argc, const char **argv)
5
{
6
int i, cnt = 1;
7
if (argc == 2)
8
cnt = strtol(argv[1], NULL, 0);
9
setup_git_directory();
10
for (i = 0; i < cnt; i++) {
11
read_cache();
12
discard_cache();
13
}
14
return 0;
15
}