]> git.ipfire.org Git - thirdparty/git.git/commit - submodule.c
submodule_move_head: reuse child_process structure for futher commands
authorStefan Beller <sbeller@google.com>
Tue, 2 May 2017 19:32:12 +0000 (12:32 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 4 May 2017 04:42:04 +0000 (13:42 +0900)
commita17062cf42556593fb73547e613b0be867026257
tree170e9bdadb5b0203983c5816d21acc9cb1c79611
parentd2bbb7c2bcf6e77ebfcabf4e12110fe6d5c91de6
submodule_move_head: reuse child_process structure for futher commands

We do not need to declare another struct child_process, but we can just
reuse the existing `cp` struct.

Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
submodule.c