Add zlib
[git/pclouds.git] / builtin-update-server-info.c
blobd1c5122227e73c23b55d828bc457a64526eff69f
1 #include "cache.h"
3 static const char update_server_info_usage[] =
4 "git-update-server-info [--force]";
6 int cmd_update_server_info(int ac, char **av, const char *prefix)
8 int i;
9 int force = 0;
10 for (i = 1; i < ac; i++) {
11 if (av[i][0] == '-') {
12 if (!strcmp("--force", av[i]) ||
13 !strcmp("-f", av[i]))
14 force = 1;
15 else
16 usage(update_server_info_usage);
19 if (i != ac)
20 usage(update_server_info_usage);
22 return !!update_server_info(force);