]>
Commit | Line | Data |
---|---|---|
53a1116c RS |
1 | #include "cache.h" |
2 | #include "builtin.h" | |
3 | #include "parse-options.h" | |
4 | ||
5 | static const char * const update_server_info_usage[] = { | |
fb52a452 | 6 | N_("git update-server-info [--force]"), |
53a1116c RS |
7 | NULL |
8 | }; | |
9 | ||
10 | int cmd_update_server_info(int argc, const char **argv, const char *prefix) | |
11 | { | |
12 | int force = 0; | |
13 | struct option options[] = { | |
fb52a452 | 14 | OPT__FORCE(&force, N_("update the info files from scratch")), |
53a1116c RS |
15 | OPT_END() |
16 | }; | |
17 | ||
da591a7f | 18 | git_config(git_default_config, NULL); |
53a1116c RS |
19 | argc = parse_options(argc, argv, prefix, options, |
20 | update_server_info_usage, 0); | |
21 | if (argc > 0) | |
22 | usage_with_options(update_server_info_usage, options); | |
23 | ||
24 | return !!update_server_info(force); | |
25 | } |