repo.or.cz
/
git.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
patch-delta: handle truncated copy parameters
[git.git]
/
t
/
helper
/
test-read-cache.c
blob
d674c88ba092d60366a14eaeccc9f4bc6f32660c
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
}