From: Johannes Sixt Date: Wed, 20 Jan 2010 15:59:44 GMT Subject: Re: [PATCH 1/2] Allow to override mergetool.prompt with $GIT_MERGETOOL*_PROMPT Message-ID: <4B572870.6090001@viscovery.net> In-Reply-To: <4B572192.2020606@gmail.com> Sebastian Schuberth schrieb: > +should_prompt_merge () { > + local prompt=$(git config --bool mergetool.prompt || echo true) 'local' is not portable. (The next patch shouldn't introduce it, either.) > -prompt=$(git config --bool mergetool.prompt || echo true) > +should_prompt_merge > +prompt=$? Previously, prompt was either "true" or "false", but now it is a number. This is not what the user (function merge_file) expects. -- Hannes