aboutsummaryrefslogtreecommitdiff
path: root/grep.c
diff options
context:
space:
mode:
authorDavid Aguilar <davvid@gmail.com>2011-05-25 23:21:01 -0700
committerJunio C Hamano <gitster@pobox.com>2011-05-26 15:05:52 -0700
commitf9ad901fd31991837c9648bbee8ac18b39aa0891 (patch)
tree19c31a93951cc9f26596fe88bed8fd9ad34c72d6 /grep.c
parent26b052515d1714918a7da4bfcdaaca37dc4db2e0 (diff)
downloadgit-f9ad901fd31991837c9648bbee8ac18b39aa0891.tar.gz
git-f9ad901fd31991837c9648bbee8ac18b39aa0891.tar.xz
git-mergetool--lib: Make vimdiff retain the current directory
When using difftool with vimdiff it can be unexpected that the current directory changes to the root of the project. Tell vim to chdir to the value of $GIT_PREFIX to fix this. Care is taken to quote the variable so that vim expands it. This avoids problems when directory names contain spaces. Signed-off-by: David Aguilar <davvid@gmail.com> Reported-by: Frédéric Heitzmann <frederic.heitzmann@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'grep.c')
0 files changed, 0 insertions, 0 deletions