repo.or.cz
/
git
/
debian.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
add: do not accept pathspec magic 'attr'
[git/debian.git]
/
t
/
helper
/
test-read-cache.c
blob
48255eef31a1e83d9a2bbb01670ba089a11c91f8
1
#include
"cache.h"
2
3
int
cmd_main
(
int
argc
,
const char
**
argv
)
4
{
5
int
i
,
cnt
=
1
;
6
if
(
argc
==
2
)
7
cnt
=
strtol
(
argv
[
1
],
NULL
,
0
);
8
setup_git_directory
();
9
for
(
i
=
0
;
i
<
cnt
;
i
++) {
10
read_cache
();
11
discard_cache
();
12
}
13
return
0
;
14
}