Re: [PATCH 1/2] Allow to override mergetool.prompt with $GIT_MERGETOOL*_PROMPT
- From
Johannes Sixt <j.sixt@viscovery.net>
- Date
- Jan 20, 2010, 15:59 UTC
- 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