]>
Commit | Line | Data |
---|---|---|
53a1116c | 1 | #include "builtin.h" |
bc5c5ec0 | 2 | #include "config.h" |
f394e093 | 3 | #include "gettext.h" |
53a1116c | 4 | #include "parse-options.h" |
623b80be | 5 | #include "server-info.h" |
53a1116c RS |
6 | |
7 | static const char * const update_server_info_usage[] = { | |
8c9e292d | 8 | "git update-server-info [-f | --force]", |
53a1116c RS |
9 | NULL |
10 | }; | |
11 | ||
12 | int cmd_update_server_info(int argc, const char **argv, const char *prefix) | |
13 | { | |
14 | int force = 0; | |
15 | struct option options[] = { | |
1224781d | 16 | OPT__FORCE(&force, N_("update the info files from scratch"), 0), |
53a1116c RS |
17 | OPT_END() |
18 | }; | |
19 | ||
da591a7f | 20 | git_config(git_default_config, NULL); |
53a1116c RS |
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); | |
25 | ||
26 | return !!update_server_info(force); | |
27 | } |