mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 11:33:48 -05:00
Enable diffing against the working tree.
Previously gitgutter could only diff the buffer against the index. This change enables diffing against the working tree, which will be useful for stashing.
This commit is contained in:
@@ -41,7 +41,7 @@ function! gitgutter#process_buffer(bufnr, force) abort
|
||||
|
||||
let diff = ''
|
||||
try
|
||||
let diff = gitgutter#diff#run_diff(a:bufnr, 0)
|
||||
let diff = gitgutter#diff#run_diff(a:bufnr, 'index', 0)
|
||||
catch /gitgutter not tracked/
|
||||
call gitgutter#debug#log('Not tracked: '.gitgutter#utility#file(a:bufnr))
|
||||
catch /gitgutter diff failed/
|
||||
|
||||
Reference in New Issue
Block a user