mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-10 12:33:47 -05:00
Set diff base when viewing file versions with Fugitive
When you look at previous versions of a file, e.g. with Fugitive's :0Gclog, gitgutter will set the diff base to the current version's parent so that diff markers appear as expected. Thannks to @rcreasi for the idea and initial implementation.
This commit is contained in:
@@ -366,6 +366,9 @@ a revision instead. For example:
|
||||
let g:gitgutter_diff_base = '<some commit SHA>'
|
||||
<
|
||||
|
||||
If you are looking at a previous version of a file with Fugitive (e.g.
|
||||
via :0Gclog), gitgutter sets the diff base to the parent of the current revision.
|
||||
|
||||
This setting is ignore when the diff is relative to the working tree
|
||||
(|g:gitgutter_diff_relative_to|).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user