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.
This commit is contained in:
Chris Bandy
2014-11-19 10:01:09 +01:00
committed by Andy Stewart
parent 83309ee075
commit f73df41654

View File

@@ -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