diff options
author | Atharva Raykar <raykar.ath@gmail.com> | 2021-08-24 19:36:09 +0530 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-08-24 14:03:58 -0700 |
commit | c51f8f94e5b3d6a8d190d9901ea0c5b83e30c3aa (patch) | |
tree | 8af8b5b6ea59bfbf0d1d9b70bcee8eeba2b06877 /t/t5549-fetch-push-http.sh | |
parent | Git 2.33-rc2 (diff) | |
download | tgif-c51f8f94e5b3d6a8d190d9901ea0c5b83e30c3aa.tar.xz |
submodule--helper: run update procedures from C
Add a new submodule--helper subcommand `run-update-procedure` that runs
the update procedure if the SHA1 of the submodule does not match what
the superproject expects.
This is an intermediate change that works towards total conversion of
`submodule update` from shell to C.
Specific error codes are returned so that the shell script calling the
subcommand can take a decision on the control flow, and preserve the
error messages across subsequent recursive calls of `cmd_update`.
This change is more focused on doing a faithful conversion, so for now we
are not too concerned with trying to reduce subprocess spawns.
Mentored-by: Christian Couder <christian.couder@gmail.com>
Mentored-by: Shourya Shukla <periperidip@gmail.com>
Signed-off-by: Atharva Raykar <raykar.ath@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5549-fetch-push-http.sh')
0 files changed, 0 insertions, 0 deletions