Fix signature of fcntl() compatibility dummy
[git/gitweb.git] / builtin-update-server-info.c
blob2b3fddcc69087d856b6a9c9f4383c5577a759c77
1 #include "cache.h"
2 #include "builtin.h"
3 #include "parse-options.h"
5 static const char * const update_server_info_usage[] = {
6 "git update-server-info [--force]",
7 NULL
8 };
10 int cmd_update_server_info(int argc, const char **argv, const char *prefix)
12 int force = 0;
13 struct option options[] = {
14 OPT_BOOLEAN('f', "force", &force,
15 "update the info files from scratch"),
16 OPT_END()
19 argc = parse_options(argc, argv, prefix, options,
20 update_server_info_usage, 0);
21 if (argc > 0)
22 usage_with_options(update_server_info_usage, options);
24 return !!update_server_info(force);