Re: [PATCH v2 3/3] git-mergetool--lib: Make vimdiff retain the current directory
- From
David Aguilar <davvid@gmail.com>
- Date
- May 26, 2011, 05:05 UTC
- Message-ID
- <BANLkTinWUK8NDDd3i7fRRTEXjSmTtMwL_Q@mail.gmail.com>
- In-Reply-To
- <1306381034-44190-3-git-send-email-davvid@gmail.com>
On Wed, May 25, 2011 at 8:37 PM, David Aguilar <davvid@gmail.com> wrote:
Show 9 quoted lines
> +
> +resolve_git_prefix() {
> + # If GIT_PREFIX is empty then we cannot use it in tools
> + # that expect to be able to chdir() to its value.
> + if test -z "$GIT_PREFIX"; then
> + GIT_PREFIX=.
> + export GIT_PREFIX
> + fi
> +}Oops, I forgot to replace the function call with : GIT_PREFIX=${GIT_PREFIX:-.}-- David