Add g:gitgutter_git_args for args to git when running git-diff.

See #541, #546.
This commit is contained in:
Andy Stewart
2018-07-31 14:28:36 +01:00
parent d2f38f401a
commit d2d2da11c5
4 changed files with 21 additions and 1 deletions

View File

@@ -212,6 +212,7 @@ You can customise:
* The signs' colours and symbols
* Line highlights
* The base of the diff
* Extra arguments for `git` when running `git diff`
* Extra arguments for `git diff`
* Key mappings
* Whether or not vim-gitgutter is on initially (defaults to on)
@@ -297,6 +298,14 @@ let g:gitgutter_diff_base = '<commit SHA>'
```
#### Extra arguments for `git` when running `git diff`
If you want to pass extra arguments to `git` when running `git diff`, do so like this:
```viml
let g:gitgutter_git_args = '--git-dir-""'
```
#### Extra arguments for `git diff`
If you want to pass extra arguments to `git diff`, for example to ignore whitespace, do so like this: