Commit Graph

7 Commits

Author SHA1 Message Date
Andy Stewart
f2e08dbeb3 Move git-tracking check into diff command.
This avoids shelling out twice per buffer: once to check whether git
knows about the file and once to perform the diff.  Now we simply do
both in one external call.

Profiling showed external calls to git taking ~20ms.  This doesn't seem
too bad but it adds up.
2014-01-27 10:48:47 +01:00
Andy Stewart
e750b5fa21 Eliminate unnecessary string concatenation. 2014-01-11 17:24:11 +01:00
Andy Stewart
7ce6309a01 Don't call getbufvar() with a default value.
Support for a default value in getbufvar() was introduced some time
after Vim 7.3.547 which is the current stable version in some package
repositories.
2014-01-09 10:05:49 +01:00
Andy Stewart
03ca0f8d93 Extract utility functions. 2014-01-08 09:55:54 +01:00
Andy Stewart
b996dd3b53 Remove unnecessary precondition. 2014-01-06 17:11:19 +01:00
Andy Stewart
88623e3fec Speed up snake-to-camel-case conversion. 2014-01-06 11:31:30 +01:00
Andy Stewart
702d27a84f Autoload. 2013-12-17 11:03:52 +01:00