Commit Graph

14 Commits

Author SHA1 Message Date
René Pfeuffer
850df6a641 Use promise instead of callback 2020-06-10 14:00:45 +02:00
René Pfeuffer
d909ff4ae4 Add marker for expansion hunks 2020-06-10 11:37:22 +02:00
René Pfeuffer
fde26cd8b7 Create new hunks instead of expanding the existing ones
This is necessary to distinguish between "real" diff lines and those
created due to expansion.
2020-06-10 11:37:22 +02:00
René Pfeuffer
4b54597e26 Fix expanding diffs without 'normal' line at the end 2020-06-10 11:37:21 +02:00
René Pfeuffer
f48ee91776 Fix types 2020-06-10 11:37:21 +02:00
René Pfeuffer
751a2bfa9b Implement option to load rest of files completely 2020-06-10 11:37:21 +02:00
René Pfeuffer
b86c025b37 Remove expand marker at bottom when fully expanded 2020-06-10 11:37:21 +02:00
René Pfeuffer
8c1d463e09 Give two options for diff expansion (some or all lines) 2020-06-10 11:37:21 +02:00
René Pfeuffer
e7f03378a4 Fix line number calculation for patch 2020-06-10 11:37:21 +02:00
René Pfeuffer
5bf624d087 Simplify test data 2020-06-10 11:37:21 +02:00
René Pfeuffer
ebfc267b93 Patch hunks with new lines 2020-06-10 11:37:21 +02:00
René Pfeuffer
2efd21d466 Handle added and deleted files correctly 2020-06-10 11:37:21 +02:00
René Pfeuffer
abca9e9746 Show number of lines that can be expanded 2020-06-10 11:37:21 +02:00
René Pfeuffer
99b7b92fbe Introduce expandable diffs 2020-06-10 11:37:21 +02:00