mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 11:33: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
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user