summaryrefslogtreecommitdiff
path: root/show-rev-cache.c
blob: fa92b87abc6f15a0421e598be2941c9c5a9389b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "cache.h"
#include "rev-cache.h"

static char *show_rev_cache_usage =
"git-show-rev-cache <rev-cache-file>";

int main(int ac, char **av)
{
	while (1 < ac && av[0][1] == '-') {
		/* do flags here */
		break;
		ac--; av++;
	}
	if (ac != 2)
		usage(show_rev_cache_usage);

	return read_rev_cache(av[1], stdout, 1);
}