aboutsummaryrefslogtreecommitdiffstats
path: root/parse-options.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2024-12-04 10:14:47 +0900
committerJunio C Hamano <gitster@pobox.com>2024-12-04 10:14:47 +0900
commit1e18cf4310b531cd5d943b9f9522292e7cc4d9e7 (patch)
tree5ecb42da0e9dd53ac0da0d2203207b3bef5caff2 /parse-options.h
parentMerge branch 'ps/bisect-double-free-fix' (diff)
parentbuiltin: pass repository to sub commands (diff)
downloadgit-1e18cf4310b531cd5d943b9f9522292e7cc4d9e7.tar.gz
git-1e18cf4310b531cd5d943b9f9522292e7cc4d9e7.zip
Merge branch 'kn/pass-repo-to-builtin-sub-sub-commands'
Built-in Git subcommands are supplied the repository object to work with; they learned to do the same when they invoke sub-subcommands. * kn/pass-repo-to-builtin-sub-sub-commands: builtin: pass repository to sub commands
Diffstat (limited to 'parse-options.h')
-rw-r--r--parse-options.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/parse-options.h b/parse-options.h
index ae15342390..f0801d4532 100644
--- a/parse-options.h
+++ b/parse-options.h
@@ -3,6 +3,8 @@
#include "gettext.h"
+struct repository;
+
/**
* Refer to Documentation/technical/api-parse-options.txt for the API doc.
*/
@@ -73,7 +75,7 @@ typedef enum parse_opt_result parse_opt_ll_cb(struct parse_opt_ctx_t *ctx,
const char *arg, int unset);
typedef int parse_opt_subcommand_fn(int argc, const char **argv,
- const char *prefix);
+ const char *prefix, struct repository *repo);
/*
* `type`::