Andy Stewart
e607a997ce
Asynchronous diffs in Vim.
2016-04-29 09:50:57 +01:00
Andy Stewart
e48824cd1d
Provide a hunk text object.
2016-04-21 14:08:14 +01:00
Andy Stewart
b3db866aab
Use "undo" instead of "revert" for discarding a hunk.
...
"Undo" is a better name than "revert" because:
- "revert" sounds like it has something to do with `git-revert` but they
are entirely different;
- "undo" is consistent with vim's "undo": discarding changes and going
back to the original.
Maintain backwards compatibility and add deprecation warnings.
Closes #306 .
2016-04-21 11:40:27 +01:00
Andy Stewart
530bf68fca
Add option to disable asynchronous diffs.
...
Closes #318 .
2016-04-21 10:29:11 +01:00
Andy Stewart
75eee3e407
Enable diffing against any commit.
...
Closes #309 .
2016-04-20 11:19:34 +01:00
Dan Church
3131bdcbb8
Remove feature gitgutter_escape_grep
...
Reverts feature introduced in 5c23cadf57
In order to use an escaped grep, please replace
`g:gitgutter_escape_grep=1` with:
let g:gitgutter_grep_command = '\grep --color=never -e'
2016-01-28 15:01:37 +00:00
Dan Church
8d229c222c
Clean up exposure of the grep command
...
This change breaks up the determining of the user's grep command, and
the arguments it sends it.
Configuration is now:
let g:gitgutter_grep_command = 'grep --color=never -e'
This makes it easier for users to configure now, though not quite as
flexible.
2016-01-28 15:01:37 +00:00
Dan Church
95734c6f6b
Add support for option g:gitgutter_grep_command
...
With this change, setting `g:gitgutter_grep_command` to ' | grep --color=never -e "^@@ "'`
greatly reduces startup time.
Before this change, `diff.vim` was a major bottleneck because it calls
`grep --help`. This is mostly unnecessary except in a few cases where
the user is running a nonstandard version of grep.
`vim --startuptime start.out large_file.sql` before:
times in msec
clock self+sourced self: sourced script
clock elapsed: other lines
000.026 000.026: --- VIM STARTING ---
[...]
068.463 003.645 003.500: sourcing /home/dchurch/.vim/plugin/gitgutter.vim
[...]
150.957 000.208 000.208: sourcing /home/dchurch/.vim/autoload/gitgutter.vim
151.294 000.196 000.196: sourcing /home/dchurch/.vim/autoload/gitgutter/utility.vim
165.059 012.619 012.619: sourcing /home/dchurch/.vim/autoload/gitgutter/diff.vim
236.901 000.188 000.188: sourcing /home/dchurch/.vim/autoload/gitgutter/hunk.vim
237.289 000.233 000.233: sourcing /home/dchurch/.vim/autoload/gitgutter/sign.vim
[...]
337.673 000.004: --- VIM STARTED ---
After change, and setting `g:gitgutter_grep_command = ' | grep --color=never -e "^@@ "'`:
000.026 000.026: --- VIM STARTING ---
[...]
064.873 002.713 002.591: sourcing /home/dchurch/.vim/plugin/gitgutter.vim
[...]
134.109 000.149 000.149: sourcing /home/dchurch/.vim/autoload/gitgutter.vim
134.337 000.147 000.147: sourcing /home/dchurch/.vim/autoload/gitgutter/utility.vim
135.411 000.232 000.232: sourcing /home/dchurch/.vim/autoload/gitgutter/diff.vim
187.831 000.180 000.180: sourcing /home/dchurch/.vim/autoload/gitgutter/hunk.vim
188.223 000.175 000.175: sourcing /home/dchurch/.vim/autoload/gitgutter/sign.vim
[...]
285.008 000.004: --- VIM STARTED ---
2016-01-28 15:01:37 +00:00
Andy Stewart
51d9a3f2bc
Clarify mappings.
2015-11-17 11:06:25 +00:00
Andy Stewart
dcaa7ea4a9
Add missing section to the help's table of contents.
...
Thanks to @sanscore for pointing this out.
2015-10-21 09:38:02 +01:00
Andy Stewart
07d7c9d478
Override SignColumn highlight group by default.
...
Most colorschemes (e.g. solarized) don't give any thought to the
SignColumn highlight group so generally the sign column is ugly.
With this change vim-gitgutter defaults to making the sign column look
like the line number column.
Solarized users no longer need `highlight clear SignColumn` in their
vimrc :)
To stop vim-gitgutter from overriding the SignColumn highlight, add this
to your vimrc:
let g:gitgutter_override_sign_column_highlight = 0
2015-03-31 16:23:55 +02:00
Andy Stewart
c6e5cf49f2
Show sign on first line when line(s) deleted at start of file.
...
This time with silly mistake fixed.
2014-06-02 09:20:51 +02:00
Andy Stewart
d1e66b71f9
Revert "Show sign on first line when line(s) deleted at start of file."
...
Signs aren't shown for deleted lines which aren't at the start of the
file.
This reverts commit 0fd18d66f6 .
2014-05-31 16:57:15 +02:00
Andy Stewart
0fd18d66f6
Show sign on first line when line(s) deleted at start of file.
2014-05-30 17:03:54 +02:00
Andy Stewart
208e301903
Document the sign column's presence with line highlights.
2014-05-20 10:08:28 +02:00
Andy Stewart
0ca3f7e3cd
Add hunk previewing.
2014-03-18 13:50:22 +01:00
Andy Stewart
bb87232842
Add ability to toggle signs on and off.
2014-01-16 11:32:41 +01:00
Andy Stewart
ae81dccb67
Add configuration option to disable key maps.
...
And add a little documentation.
2014-01-13 11:01:14 +01:00
Andy Stewart
92abcce1ff
Stage and revert individual hunks.
2014-01-09 12:14:59 +01:00
Andy Stewart
6f760b077f
Fix typo.
2013-12-07 14:01:53 +00:00
Andy Stewart
1b5fe1bf9c
Update help text.
2013-08-19 15:25:57 +02:00
Andy Stewart
1a13951fc5
Simplify tradeoff between accuracy and speed.
...
If the plugin slows down your Vim too much, you can have it run less
often by setting `g:gitgutter_eager = 0`.
This replaces the former options `g:gitgutter_on_bufenter` and
`g:gitgutter_on_focusgained`.
2013-04-17 10:43:45 +02:00
Andy Stewart
5c23cadf57
Allow plugin to bypass any alias for grep.
...
This is an opt-in configuration.
2013-04-05 11:23:11 +02:00
Andy Stewart
3243987028
Make signs optional (on by default).
2013-03-28 09:36:24 +01:00
Andy Stewart
948a0fb977
Allow configuration of extra arguments for git-diff.
2013-03-20 09:56:45 +01:00
Andy Stewart
e04d719159
Customisable signs' symbols.
2013-03-20 09:29:00 +01:00
Andy Stewart
677dac451d
Add opt-out configuration for BufEnter and FocusGained.
2013-03-15 10:53:31 +01:00
Andy Stewart
c48829586e
Update signs across all buffers on FocusGained.
2013-03-14 15:41:45 +01:00
Andy Stewart
3f9cf5a44d
Document special case of deleted first line(s).
2013-03-08 13:29:38 +01:00
Andy Stewart
3979c4f7b6
Easier customisation.
2013-03-08 13:19:25 +01:00
Bill Turner
b9fbcfb330
Add help documentation.
2013-03-07 15:08:55 +01:00