Merge branch 'di/fast-import-empty-tag-note-fix'
[git/jnareb-git.git] / builtin / update-server-info.c
blobb90dce6358153b274a1e26afde9cc89aad473d14
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__FORCE(&force, "update the info files from scratch"),
15 OPT_END()
18 argc = parse_options(argc, argv, prefix, options,
19 update_server_info_usage, 0);
20 if (argc > 0)
21 usage_with_options(update_server_info_usage, options);
23 return !!update_server_info(force);