mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-09 12:03:48 -05:00
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:
committed by
Andy Stewart
parent
83309ee075
commit
f73df41654
@@ -23,7 +23,7 @@ function! gitgutter#diff#run_diff(realtime, use_external_grep, lines_of_context)
|
|||||||
if a:realtime
|
if a:realtime
|
||||||
let cmd .= '-- '.blob_file.' - '
|
let cmd .= '-- '.blob_file.' - '
|
||||||
else
|
else
|
||||||
let cmd .= gitgutter#utility#shellescape(gitgutter#utility#filename())
|
let cmd .= '-- '.gitgutter#utility#shellescape(gitgutter#utility#filename())
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if a:use_external_grep && s:grep_available
|
if a:use_external_grep && s:grep_available
|
||||||
|
|||||||
Reference in New Issue
Block a user