diff options
Diffstat (limited to 'show-rev-cache.c')
-rw-r--r-- | show-rev-cache.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/show-rev-cache.c b/show-rev-cache.c new file mode 100644 index 0000000000..fa92b87abc --- /dev/null +++ b/show-rev-cache.c @@ -0,0 +1,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); +} |