1#include "cache.h"
2#include "object.h"
3
4static const char update_server_info_usage[] =
5"git-update-server-info [--force]";
6
7int main(int ac, char **av)
8{
9 int i;
10 int force = 0;
11 track_object_refs = 0;
12
13 for (i = 1; i < ac; i++) {
14 if (av[i][0] == '-') {
15 if (!strcmp("--force", av[i]) ||
16 !strcmp("-f", av[i]))
17 force = 1;
18 else
19 usage(update_server_info_usage);
20 }
21 }
22 if (i != ac)
23 usage(update_server_info_usage);
24
25 return !!update_server_info(force);
26}