diff options
author | Glen Choo <chooglen@google.com> | 2022-03-15 14:09:22 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-03-16 15:07:43 -0700 |
commit | c9911c9358e611390e2444f718c73900d17d3d60 (patch) | |
tree | fe50ffd8170cda0bae4756e58e6102c6c2651f44 /t/t1404-update-ref-errors.sh | |
parent | builtin/submodule--helper.c: rename option struct to "opt" (diff) | |
download | tgif-c9911c9358e611390e2444f718c73900d17d3d60.tar.xz |
submodule--helper: teach update_data more options
Refactor 'struct update_data' to hold the parsed args needed by "git
submodule--helper update" and refactor "update-clone" and
"run-update-procedure" (the functions that will be combined to form
"update") to use these options.
For "run-update-procedure", 'struct update_data' already holds its args,
so only arg parsing code needs to be updated.
For "update-clone", move its args from 'struct submodule_update_clone'
into 'struct update_data', and replace them with a pointer to 'struct
update_data'. Its other members hold the submodule iteration state of
"update-clone", so those are unchanged.
Incidentally, since we reformat the designated initializers of the
affected structs, also reformat MODULE_CLONE_DATA_INIT for consistency.
Signed-off-by: Glen Choo <chooglen@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1404-update-ref-errors.sh')
0 files changed, 0 insertions, 0 deletions