Commit Graph

8 Commits

Author SHA1 Message Date
Andy Stewart
f158fee95e Remove debugging line. 2014-01-27 15:24:04 +01:00
Andy Stewart
5485c37b38 Fix bug in realtime diff of non-current buffer.
This bug meant that a realtime diff of a buffer which wasn't the current
one -- which happens during GitGutterAll() -- diffed the staged version
of the buffer against the current buffer's contents instead of the
buffer's contents.
2014-01-27 14:51:19 +01:00
Andy Stewart
afecd8711d Fix precedence in diff command. 2014-01-27 13:54:11 +01:00
Andy Stewart
8ada986fcf More accurate error message. 2014-01-27 13:41:05 +01:00
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
92abcce1ff Stage and revert individual hunks. 2014-01-09 12:14:59 +01:00
Andy Stewart
65b050ba2e Fix unnecessary modified sign in modified-and-removed diff.
This bug didn't affect anything because the unnecessary sign was
overwritten by the correct sign.
2014-01-06 17:05:01 +01:00
Andy Stewart
702d27a84f Autoload. 2013-12-17 11:03:52 +01:00