path: root/parse-options.h
diff options
authorNguyễn Thái Ngọc Duy <>2019-03-29 10:39:04 (GMT)
committerJunio C Hamano <>2019-04-02 04:56:59 (GMT)
commit208718227207480b0f58e35e045e36ed36a59205 (patch)
tree0a79f4b7e5bac50b7fbab27f6aafd316a0a2cf5a /parse-options.h
parent55cf704a9d139bca0cb5cca1bf047eb043e13bd2 (diff)
checkout: split options[] array in three pieces
This is a preparation step for introducing new commands that do parts of what checkout does. There will be two new commands, one is about switching branches, detaching HEAD... one about checking out paths. These share the a subset of command line options. The rest of command line options are separate. Signed-off-by: Nguyễn Thái Ngọc Duy <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'parse-options.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/parse-options.h b/parse-options.h
index 7d83e29..9a90c33 100644
--- a/parse-options.h
+++ b/parse-options.h
@@ -257,6 +257,7 @@ int parse_options_step(struct parse_opt_ctx_t *ctx,
int parse_options_end(struct parse_opt_ctx_t *ctx);
+struct option *parse_options_dup(const struct option *a);
struct option *parse_options_concat(struct option *a, struct option *b);
/*----- some often used options -----*/