5 #include "parse-options.h"
6 #include "server-info.h"
8 static const char * const update_server_info_usage
[] = {
9 "git update-server-info [-f | --force]",
13 int cmd_update_server_info(int argc
, const char **argv
, const char *prefix
)
16 struct option options
[] = {
17 OPT__FORCE(&force
, N_("update the info files from scratch"), 0),
21 git_config(git_default_config
, NULL
);
22 argc
= parse_options(argc
, argv
, prefix
, options
,
23 update_server_info_usage
, 0);
25 usage_with_options(update_server_info_usage
, options
);
27 return !!update_server_info(force
);