diff options
| author | Derrick Stolee <derrickstolee@github.com> | 2025-02-03 17:11:03 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-02-03 16:12:41 -0800 |
| commit | a3f79e9abdbdb27308ac7e3d9e362bcc361cecdc (patch) | |
| tree | ea7f9d2fff7dae1b384a2b19036e16cf0b80b152 /builtin | |
| parent | Merge branch 'master' into ds/backfill (diff) | |
| download | git-a3f79e9abdbdb27308ac7e3d9e362bcc361cecdc.tar.gz git-a3f79e9abdbdb27308ac7e3d9e362bcc361cecdc.zip | |
backfill: add builtin boilerplate
In anticipation of implementing 'git backfill', populate the necessary files
with the boilerplate of a new builtin. Mark the builtin as experimental at
this time, allowing breaking changes in the near future, if necessary.
Signed-off-by: Derrick Stolee <stolee@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
| -rw-r--r-- | builtin/backfill.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/builtin/backfill.c b/builtin/backfill.c new file mode 100644 index 0000000000..58d0866c0f --- /dev/null +++ b/builtin/backfill.c @@ -0,0 +1,28 @@ +#include "builtin.h" +#include "config.h" +#include "parse-options.h" +#include "repository.h" +#include "object.h" + +static const char * const builtin_backfill_usage[] = { + N_("git backfill [<options>]"), + NULL +}; + +int cmd_backfill(int argc, const char **argv, const char *prefix, struct repository *repo) +{ + struct option options[] = { + OPT_END(), + }; + + show_usage_if_asked(argc, argv, builtin_backfill_usage[0]); + + argc = parse_options(argc, argv, prefix, options, builtin_backfill_usage, + 0); + + repo_config(repo, git_default_config, NULL); + + die(_("not implemented")); + + return 0; +} |
