Enable diffing against any commit.

Closes #309.
This commit is contained in:
Andy Stewart
2016-04-20 11:19:34 +01:00
parent 78d83c7056
commit 75eee3e407
4 changed files with 27 additions and 4 deletions

View File

@@ -117,6 +117,7 @@ You can customise:
- The sign column's colours
- The signs' colours and symbols
- Line highlights
- The base of the diff
- Extra arguments for git-diff
- Key mappings
- The grep executable used
@@ -185,6 +186,14 @@ colorscheme or |vimrc|:
GitGutterChangeDeleteLine " default: links to GitGutterChangeLineDefault
<
THE BASE OF THE DIFF
By default buffers are diffed against the index. To diff against a commit
instead:
>
let g:gitgutter_diff_base = '<commit SHA>'
<
EXTRA ARGUMENTS FOR GIT-DIFF
To pass extra arguments to git-diff, add this to your |vimrc|: