Commit Graph

16 Commits

Author SHA1 Message Date
Andy Stewart
3a810a9afc Make the 'exceeded max signs' warning less intrusive.
- Only show it once per buffer.
- Redraw before echo to avoid the hit-enter prompt.

See #259.
2016-01-13 16:05:18 +00:00
somini
1067294cdc Specify help files correctly
This makes so that editing helpfiles directly triggers the gutters,
while keeping the default behaviour of editing help buffers (opened
with `:help stuff`) doesn't.
2015-08-26 10:43:01 +02:00
Andy Stewart
62462a25a7 Minor refactor. 2015-08-17 09:45:31 +02:00
Manuel Johannes Messner
0ca15c8ad2 Add support for fish shell
The `&&` and the `||` operators aren't available in fish.
The equivalents are `; and` and `; or`.
Also single parentheses are used for command substitution.
The fish equivalents are `begin` and `end`.
But they aren't needed here.
2015-08-17 09:29:15 +02:00
Andy Stewart
2e98692278 Do not process help files. 2015-07-14 14:44:35 +02:00
Andy Stewart
937930e647 Fix regex to eliminate false positives in match. 2015-04-21 10:10:18 +02:00
Andy Stewart
8345c35770 Stop early when file is in .git directory. 2015-03-23 11:36:34 +01:00
Andy Stewart
1a7f1c5bf6 Fix typo with variable scope. 2015-03-10 12:11:04 +01:00
Andy Stewart
11b6813b94 Use echo instead of echom.
No need to save the warnings in the messages list.
2015-03-10 12:10:32 +01:00
Eli Young
d613f0f3b2 Remove buffer_contents function
This was only used for realtime diffs, which now write to a temporary
file.
2015-03-04 10:55:32 +01:00
Eli Young
0cb1e41b23 Use a temporary file for buffer for realtime diffs
`git diff` doesn't perform EOL conversion on stdin, causing it to
mistakenly flag every line as having changed when the working tree uses
a different EOL than the blobs. Writing the buffer to a temporary file
and diffing against that avoids this issue.

Fixes #232.
2015-03-04 10:55:31 +01:00
Andrea Cedraro
88c7916d2f Use system() with silent to avoid visual artifact 2014-11-30 17:54:24 +01:00
Andy Stewart
a114088f22 Support symlinked files.
Adds support for when a symlink file <target> points to another file
<source>, where <srouce> is a file under Git version control.

Thanks to @Z1MM32M4N for work on this (see #209).
2014-11-14 14:16:40 +01:00
Andy Stewart
dfe985a1a6 Use buffer numbers instead of buffer names.
Also don't pass buffer number to functions when they can look it up
themselves.

Using buffer numbers also eliminates any ambiguity which might arise
from symbolic links, where you have potentially two names for a file.

Thanks to @Z1MM32M4N for work on this (see #209).
2014-11-14 12:55:40 +01:00
Andy Stewart
83ace2014a Suppress signs when there are more than 500. 2014-07-21 16:36:16 +02:00
Andy Stewart
fed2dbad34 Move every function into gitgutter namespace.
This makes profiling much easier.
2014-06-26 11:09:29 +02:00