From f73df4165435ec375dba21a0ab006785611fdc3f Mon Sep 17 00:00:00 2001 From: Chris Bandy Date: Wed, 19 Nov 2014 10:01:09 +0100 Subject: [PATCH] Handle files with the same name as revisions. Before this change diffing a file with the same name as a branch would fail because git found the name ambiguous. See #210. --- autoload/gitgutter/diff.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/gitgutter/diff.vim b/autoload/gitgutter/diff.vim index a79db34..99fb218 100644 --- a/autoload/gitgutter/diff.vim +++ b/autoload/gitgutter/diff.vim @@ -23,7 +23,7 @@ function! gitgutter#diff#run_diff(realtime, use_external_grep, lines_of_context) if a:realtime let cmd .= '-- '.blob_file.' - ' else - let cmd .= gitgutter#utility#shellescape(gitgutter#utility#filename()) + let cmd .= '-- '.gitgutter#utility#shellescape(gitgutter#utility#filename()) endif if a:use_external_grep && s:grep_available