diff options
Diffstat (limited to 'update-server-info.c')
-rw-r--r-- | update-server-info.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/update-server-info.c b/update-server-info.c new file mode 100644 index 0000000000..0b6c3835bd --- /dev/null +++ b/update-server-info.c @@ -0,0 +1,25 @@ +#include "cache.h" + +static const char update_server_info_usage[] = +"git-update-server-info [--force]"; + +int main(int ac, char **av) +{ + int i; + int force = 0; + for (i = 1; i < ac; i++) { + if (av[i][0] == '-') { + if (!strcmp("--force", av[i]) || + !strcmp("-f", av[i])) + force = 1; + else + usage(update_server_info_usage); + } + } + if (i != ac) + usage(update_server_info_usage); + + setup_git_directory(); + + return !!update_server_info(force); +} |