treewide: remove cache.h inclusion due to object-file.h changes
[alt-git.git] / builtin / update-server-info.c
blobe7bff27ae4053d94ef4557c9688c1f6875d3f6a3
1 #include "cache.h"
2 #include "config.h"
3 #include "builtin.h"
4 #include "gettext.h"
5 #include "parse-options.h"
7 static const char * const update_server_info_usage[] = {
8 "git update-server-info [-f | --force]",
9 NULL
12 int cmd_update_server_info(int argc, const char **argv, const char *prefix)
14 int force = 0;
15 struct option options[] = {
16 OPT__FORCE(&force, N_("update the info files from scratch"), 0),
17 OPT_END()
20 git_config(git_default_config, NULL);
21 argc = parse_options(argc, argv, prefix, options,
22 update_server_info_usage, 0);
23 if (argc > 0)
24 usage_with_options(update_server_info_usage, options);
26 return !!update_server_info(force);