Matt Diephouse
|
4e9de9b94a
|
Actually commit these changes 😳
|
2016-02-03 17:55:16 -05:00 |
|
Matt Diephouse
|
3e5c5a3def
|
Document PatchOutput.hs
|
2016-02-03 12:58:54 -05:00 |
|
Matt Diephouse
|
8fbfb83f69
|
hunks is a Renderer
|
2016-02-02 16:53:48 -05:00 |
|
Matt Diephouse
|
3a9803ee15
|
Make Renderer take a pair of Source Chars
|
2016-01-14 15:09:47 -05:00 |
|
Matt Diephouse
|
9c4ea153bc
|
Add a Renderer type for rendering diffs
|
2016-01-14 13:18:40 -05:00 |
|
Rob Rix
|
c6ef5b4ef8
|
Remove showRow.
|
2015-12-30 18:37:38 -05:00 |
|
Rob Rix
|
3f22926e86
|
Use showLines to render trailing context.
|
2015-12-30 18:37:25 -05:00 |
|
Rob Rix
|
8cbe4e39fb
|
Use showLines to render leading context.
|
2015-12-30 18:37:19 -05:00 |
|
Rob Rix
|
0c87606997
|
Use showLines to render changes.
|
2015-12-30 18:36:28 -05:00 |
|
Rob Rix
|
4ba7a017cc
|
Add showLines to show a list of lines with the same prefix.
|
2015-12-30 18:34:55 -05:00 |
|
Rob Rix
|
09b81a6c7f
|
Render deletions before insertions.
|
2015-12-30 18:29:52 -05:00 |
|
Rob Rix
|
7f849f9aab
|
Continue the diff through the remainder of the rows.
|
2015-12-30 18:19:17 -05:00 |
|
Rob Rix
|
c5b3058099
|
Rename a variable.
|
2015-12-30 18:10:58 -05:00 |
|
Rob Rix
|
36637b146d
|
No changes within 7 lines → end of this hunk.
|
2015-12-30 18:08:06 -05:00 |
|
Rob Rix
|
3e691e63ca
|
Scan at most 7 lines.
|
2015-12-30 18:06:47 -05:00 |
|
Rob Rix
|
30a3bd1cf4
|
Pass both the leading context and the changes to changeIncludingContext.
|
2015-12-30 18:05:29 -05:00 |
|
Rob Rix
|
2147654a5e
|
Don’t bother binding the last case.
|
2015-12-30 17:54:27 -05:00 |
|
Rob Rix
|
02e8e7d5c7
|
Define contiguousChanges in terms of changeIncludingContext .
|
2015-12-30 17:52:18 -05:00 |
|
Rob Rix
|
ed9b57af4e
|
Define nextChange in terms of changeIncludingContext .
|
2015-12-30 17:43:46 -05:00 |
|
Rob Rix
|
4e10072341
|
Hide Source.break .
|
2015-12-30 17:42:18 -05:00 |
|
Rob Rix
|
e65ea093d4
|
Add a function constructing a Change which includes all leading context.
|
2015-12-30 17:41:24 -05:00 |
|
Rob Rix
|
159f39b1dc
|
Bind the last change in a let statement.
|
2015-12-30 17:35:04 -05:00 |
|
Rob Rix
|
d64cb6f757
|
Accumulate contiguous changes into a single hunk.
|
2015-12-30 17:32:07 -05:00 |
|
Rob Rix
|
c1722fec1a
|
Diff lines are evidently 1-indexed.
|
2015-12-30 16:39:23 -05:00 |
|
Rob Rix
|
06a9d6489b
|
Remove takeLast .
|
2015-12-30 16:35:34 -05:00 |
|
Rob Rix
|
21eadcd28b
|
Take the size of the correct list.
|
2015-12-30 16:33:45 -05:00 |
|
Rob Rix
|
2c7302b770
|
Only count the skipped context.
|
2015-12-30 16:32:42 -05:00 |
|
Rob Rix
|
78bd3783d2
|
Split the leading context with splitAt .
|
2015-12-30 16:32:29 -05:00 |
|
Rob Rix
|
0cf930efb4
|
Sum the lengths of the leading rows for the offset.
|
2015-12-30 16:30:52 -05:00 |
|
Rob Rix
|
61ddae853c
|
Compute (wrong) offsets to changes and hunks.
|
2015-12-30 16:26:02 -05:00 |
|
Rob Rix
|
8a22a8a0c8
|
Leave Hunk lengths in Sum .
|
2015-12-30 16:25:18 -05:00 |
|
Rob Rix
|
b20aca9459
|
Leave Hunk offsets in Sum .
|
2015-12-30 16:24:33 -05:00 |
|
Rob Rix
|
a842048ae1
|
Offsets are pairs.
|
2015-12-30 16:05:42 -05:00 |
|
Rob Rix
|
2b352e44d4
|
Render lines in Maybe.
|
2015-12-30 16:03:38 -05:00 |
|
Rob Rix
|
0fff708848
|
Render empty lines to empty strings.
|
2015-12-30 16:00:56 -05:00 |
|
Rob Rix
|
72f5e22fde
|
Hunk headers include the hunk lengths.
|
2015-12-30 15:59:00 -05:00 |
|
Rob Rix
|
2547306a56
|
Add a function to compute the lengths of hunks in Sum.
|
2015-12-30 15:57:36 -05:00 |
|
Rob Rix
|
f6fbefb36e
|
changeLength doesn’t unpack the Sums.
|
2015-12-30 15:56:52 -05:00 |
|
Rob Rix
|
bf2651da67
|
Sum the lengths of changes.
|
2015-12-30 15:56:12 -05:00 |
|
Rob Rix
|
e7dc4e89ae
|
Add a rowLength function in Sum.
|
2015-12-30 15:56:03 -05:00 |
|
Rob Rix
|
def3237ace
|
Add a lineLength function in Sum.
|
2015-12-30 15:55:55 -05:00 |
|
Rob Rix
|
dc39aa4007
|
Remove the Eq constraints.
|
2015-12-30 15:38:53 -05:00 |
|
Rob Rix
|
ebaf291a33
|
Render context rows with showRow .
|
2015-12-30 15:38:11 -05:00 |
|
Rob Rix
|
0010ec796a
|
Rename lineString to showLine.
|
2015-12-30 15:37:04 -05:00 |
|
Rob Rix
|
3c4cf3c514
|
Remove showLine.
|
2015-12-30 15:36:51 -05:00 |
|
Rob Rix
|
386ae52c77
|
Test string equality when rendering rows as changes.
|
2015-12-30 15:36:31 -05:00 |
|
Rob Rix
|
7763423e9d
|
Capture strings for row lines.
|
2015-12-30 15:36:11 -05:00 |
|
Rob Rix
|
4c31d94350
|
Use lineString to render leading context.
|
2015-12-30 15:35:21 -05:00 |
|
Rob Rix
|
2647390232
|
Use lineString to render trailing context.
|
2015-12-30 15:34:53 -05:00 |
|
Rob Rix
|
8d0df93193
|
Use lineString to show rows.
|
2015-12-30 15:34:05 -05:00 |
|