Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiang Xin <zhiyou.jx@alibaba-inc.com>2024-01-21 16:15:38 +0300
committerJunio C Hamano <gitster@pobox.com>2024-01-22 18:54:38 +0300
commit176cd68634c4641cc45030dc7f287be47d1809d1 (patch)
tree9ec852b0096ad20f1cc097ae4698827373a23dd1 /archive.h
parent35d26e79f8d8c030269a198d07de939bd3f5ea08 (diff)
transport-helper: call do_take_over() in process_connect
The existing pattern among all callers of process_connect() seems to be if (process_connect(...)) { do_take_over(); ... dispatch to the underlying method ... } ... otherwise implement the fallback ... where the return value from process_connect() is the return value of the call it makes to process_connect_service(). Move the call of do_take_over() inside process_connect(), so that calling the process_connect() function is more concise and will not miss do_take_over(). Suggested-by: Junio C Hamano <gitster@pobox.com> Signed-off-by: Jiang Xin <zhiyou.jx@alibaba-inc.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'archive.h')
0 files changed, 0 insertions, 0 deletions