1 #define USE_THE_REPOSITORY_VARIABLE
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
,
16 struct repository
*repo UNUSED
)
19 struct option options
[] = {
20 OPT__FORCE(&force
, N_("update the info files from scratch"), 0),
24 git_config(git_default_config
, NULL
);
25 argc
= parse_options(argc
, argv
, prefix
, options
,
26 update_server_info_usage
, 0);
28 usage_with_options(update_server_info_usage
, options
);
30 return !!update_server_info(force
);