Andy Stewart
65e3ff8994
Fix Markdown link.
2016-04-29 10:25:21 +01:00
Andy Stewart
e607a997ce
Asynchronous diffs in Vim.
2016-04-29 09:50:57 +01:00
Andy Stewart
035ea9260c
Add section on extensions to README.
2016-04-21 15:57:07 +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
Andy Stewart
0af9f2a3ab
Add caveats about grep's --color flag.
2016-02-21 11:22:33 +00:00
Andy Stewart
18b7836168
Neovim: run diffs asynchronously.
2016-02-09 10:11:41 +00: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
f52f875fc7
Add caveat about unstaging hunks.
2015-12-16 12:18:11 +00:00
Andy Stewart
134fef6f54
Mention correct handling of line endings.
...
See #233 for more information.
2015-12-16 12:16:11 +00:00
Andy Stewart
fbc4e3ff02
Clarify how to get started.
2015-12-16 12:00:43 +00:00
Andy Stewart
45f6521f8a
Remove fish caveat because fish is supported.
2015-12-16 11:53:01 +00:00
Andy Stewart
28aea43adf
Add link to vim-signify.
2015-12-10 11:08:36 +00:00
Andy Stewart
1aed46c072
Add a note about unstaging staged changes.
2015-11-26 09:47:06 +00:00
Andy Stewart
965f8bc101
Add a note about updatetime.
2015-11-26 09:43:06 +00:00
Andy Stewart
beb20d3924
Add note about fish shell.
2015-08-17 09:46:44 +02: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
1fae335a65
Force grep to produce colourless output.
2015-03-03 10:52:07 +01:00
Andy Stewart
f6d5b8297f
Add note to check grep produces colourless output.
2015-02-27 09:57:34 +00:00
Andy Stewart
061258e044
Add note about solarized-dark.
2015-02-11 10:04:27 +01:00
Andy Stewart
e5efbaffc0
Fix Markdown typo.
2015-01-15 15:00:15 +01:00
Andy Stewart
6b8e908cc9
Enable . command to work with staging/reverting hunks.
2015-01-14 10:40:43 +01:00
Andy Stewart
2c8e82ab80
Add another note for Fish users to README.
2015-01-07 16:41:51 +01:00
Andy Stewart
1a68abedf1
Update caveat about visual artefacts.
2014-12-06 12:16:34 +01:00
Andy Stewart
83ace2014a
Suppress signs when there are more than 500.
2014-07-21 16:36:16 +02:00
Andy Stewart
a2aa2b1100
Avoid Windows command prompt popups when possible.
...
Before this commit some Windows users saw the command prompt pop
up briefly, and/or the taskbar flicker, every time the plugin ran.
Now the plugin will use xolox's vim-shell and vim-misc, if they are
available and we are on Windows, to execute external commands. Xolox's
clever plugins avoid the command prompt popup and taskbar flicker.
Windows users with those plugins installed can opt out by setting a
variable in their vimrc.
Many thanks to @suxpert for the initial code.
2014-06-19 10:45:40 +02:00
Andy Stewart
7ac9d059f8
Add note about updatetime.
2014-06-17 09:50:29 +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
37883739d9
Update broken link to my portfolio.
2014-05-07 14:05:05 +02:00
Adam Monsen
7908defa0c
README: adapt to Vundle interface change
...
"Bundle" is now "Plugin"
https://github.com/gmarik/Vundle.vim/blob/master/doc/vundle.txt#L345-L369
2014-04-15 08:47:18 -07:00
Andy Stewart
0ca3f7e3cd
Add hunk previewing.
2014-03-18 13:50:22 +01:00
Andy Stewart
f291db08c7
Disable realtime updates when Vim older than 7.3.105.
2014-02-14 12:59:39 +00:00
Andy Stewart
13a11f8935
README improvements.
2014-01-16 12:17:02 +01:00
Andy Stewart
bb87232842
Add ability to toggle signs on and off.
2014-01-16 11:32:41 +01:00
Andy Stewart
0537c6945a
Use [c and ]c to jump between hunks (changes).
...
This is more consistent with Vim.
2014-01-15 15:36:13 +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
dd93685ca3
Proper sentences in bullet points.
2014-01-11 17:26:38 +01:00
Andy Stewart
5bd0f7f796
Add up-to-dateness feature to README.
2014-01-10 11:13:17 +01:00
Andy Stewart
a5b9da9f56
Add features section to README.
2014-01-10 10:25:58 +01:00
Andy Stewart
92abcce1ff
Stage and revert individual hunks.
2014-01-09 12:14:59 +01:00
Andy Stewart
d420a44536
Reduce duplicate work due to overlapping autocommands.
2014-01-07 15:02:27 +01:00
Andy Stewart
021a922083
Remove obsolete text.
2014-01-07 10:47:55 +01:00
Andy Stewart
88a2eb3626
Update FAQ.
2014-01-07 10:45:59 +01:00