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
Skip merges in format-patch.
[git.git]
/
show-rev-cache.c
blob
fa92b87abc6f15a0421e598be2941c9c5a9389b6
1
#include
"cache.h"
2
#include
"rev-cache.h"
3
4
static char
*
show_rev_cache_usage
=
5
"git-show-rev-cache <rev-cache-file>"
;
6
7
int
main
(
int
ac
,
char
**
av
)
8
{
9
while
(
1
<
ac
&&
av
[
0
][
1
] ==
'-'
) {
10
/* do flags here */
11
break
;
12
ac
--;
av
++;
13
}
14
if
(
ac
!=
2
)
15
usage
(
show_rev_cache_usage
);
16
17
return
read_rev_cache
(
av
[
1
],
stdout
,
1
);
18
}