]> git.ipfire.org Git - thirdparty/git.git/commit - git.c
pull: implement skeletal builtin pull
authorPaul Tan <pyokagan@gmail.com>
Sun, 14 Jun 2015 08:41:51 +0000 (16:41 +0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 15 Jun 2015 19:40:50 +0000 (12:40 -0700)
commit1e1ea69fa4e5fb20baefe9e5422527e971d56a86
tree747254bde5fa4f5b1fc09cbf2a0672f61b87db8a
parent85b343245b495a47f937007e1c0650f2070b9b4f
pull: implement skeletal builtin pull

For the purpose of rewriting git-pull.sh into a C builtin, implement a
skeletal builtin/pull.c that redirects to $GIT_EXEC_PATH/git-pull.sh if
the environment variable _GIT_USE_BUILTIN_PULL is not defined. This
allows us to fall back on the functional git-pull.sh when running the
test suite for tests that depend on a working git-pull implementation.

This redirection should be removed when all the features of git-pull.sh
have been re-implemented in builtin/pull.c.

Helped-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Paul Tan <pyokagan@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
builtin.h
builtin/pull.c [new file with mode: 0644]
git.c