]> git.ipfire.org Git - thirdparty/git.git/commit
git-pull.c: introduce git_pull_config()
authorMehul Jain <mehul.jain2029@gmail.com>
Mon, 21 Mar 2016 18:18:02 +0000 (23:48 +0530)
committerJunio C Hamano <gitster@pobox.com>
Mon, 21 Mar 2016 20:23:44 +0000 (13:23 -0700)
commitc48d73bdececb38af237450724b1a67307d7a013
treefa51704367996b075e43447c5a61a54d49767664
parentab5d01a29eb7380ceab070f0807c2939849c44bc
git-pull.c: introduce git_pull_config()

git-pull makes a seperate call to git_config_get_bool() to read the value
of "rebase.autostash". This can be reduced as a call to git_config() is
already there in the code.

Introduce a callback function git_pull_config() to read "rebase.autostash"
along with other variables.

Helped-by: Junio C Hamano <gitster@pobox.com>
Helped-by: Paul Tan <pyokagan@gmail.com>
Helped-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Mehul Jain <mehul.jain2029@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/pull.c