]> git.ipfire.org Git - thirdparty/git.git/blame - builtin/update-server-info.c
Merge branch 'js/update-index-ignore-removal-for-skip-worktree'
[thirdparty/git.git] / builtin / update-server-info.c
CommitLineData
53a1116c 1#include "cache.h"
b2141fc1 2#include "config.h"
53a1116c
RS
3#include "builtin.h"
4#include "parse-options.h"
5
6static const char * const update_server_info_usage[] = {
fb52a452 7 N_("git update-server-info [--force]"),
53a1116c
RS
8 NULL
9};
10
11int cmd_update_server_info(int argc, const char **argv, const char *prefix)
12{
13 int force = 0;
14 struct option options[] = {
1224781d 15 OPT__FORCE(&force, N_("update the info files from scratch"), 0),
53a1116c
RS
16 OPT_END()
17 };
18
da591a7f 19 git_config(git_default_config, NULL);
53a1116c
RS
20 argc = parse_options(argc, argv, prefix, options,
21 update_server_info_usage, 0);
22 if (argc > 0)
23 usage_with_options(update_server_info_usage, options);
24
25 return !!update_server_info(force);
26}