mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-11 13:03:45 -05:00
Add g:gitgutter_git_args for args to git when running git-diff.
See #541, #546.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user