]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/submodule--helper.c
submodule--helper: offer a consistent API
authorStefan Beller <sbeller@google.com>
Tue, 31 May 2016 23:59:33 +0000 (16:59 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 1 Jun 2016 18:31:49 +0000 (11:31 -0700)
commitb0f4b4084626ab0f87611acd89030e8bdf0b850e
tree7e4419d2415305c02bb85eb300389176000835ee
parent60bd4b1c513bb652cdffad44382046ca872140eb
submodule--helper: offer a consistent API

In 48308681 (2016-02-29, git submodule update: have a dedicated helper
for cloning), the helper communicated errors back only via exit code,
and dance with printing '#unmatched' in case of error was left to
git-submodule.sh as it uses the output of the helper and pipes it into
shell commands. This change makes the helper consistent by never
printing '#unmatched' in the helper but always handling these piping
issues in the actual shell script.

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