Commit graph

25 commits

Author SHA1 Message Date
Armin Ronacher
020701c4d5 Improve diff op grouping for full matches
This changes the behavior of the diff op grouping function to return
an empty result if the diff is a full match.  This also adds an example
to demonstrate unified diff rendering.
2021-01-30 23:11:35 +01:00
Armin Ronacher
da32711e1a Added DiffHook::apply_to_hook 2021-01-27 18:08:36 +01:00
Armin Ronacher
1ba57dd21a Added missing snapshot files 2021-01-24 11:40:31 +01:00
Armin Ronacher
602b587c2d Move more snapshots to separate files 2021-01-24 11:27:46 +01:00
Armin Ronacher
1baa23ddcc Change as_tag_tuple to work by reference 2021-01-24 11:25:27 +01:00
Armin Ronacher
18fff98d22 Use named snapshots for tests 2021-01-24 09:17:09 +01:00
Armin Ronacher
5dca6ae665 Fix bug in patience 2021-01-24 03:01:40 +01:00
Armin Ronacher
8aaa934925 Added unified diff text api 2021-01-24 01:58:14 +01:00
Armin Ronacher
c0b61f95b0 Initial work to refactor the text module 2021-01-23 22:55:42 +01:00
Armin Ronacher
8692e89b0a Add utility methods to diff that capture 2021-01-23 22:29:10 +01:00
Armin Ronacher
ca19caddc2 Implement diff op grouping for capture hook 2021-01-23 22:00:05 +01:00
Armin Ronacher
34dd260dbb Added text diff utilities 2021-01-18 21:37:04 +01:00
Armin Ronacher
bc97614946 Slightly improve documentation 2021-01-17 23:53:20 +01:00
Armin Ronacher
be49f4b55f Replace all tests with insta tests 2021-01-17 23:47:57 +01:00
Armin Ronacher
51e9b6e192 Remove unused method on capture hook 2021-01-17 23:43:54 +01:00
Armin Ronacher
7c8d07df6d Added better tests for myers and patience, added capture hook 2021-01-17 23:42:38 +01:00
Armin Ronacher
501ca2fd5f Rearrange code to be more consistent 2021-01-17 23:19:16 +01:00
Armin Ronacher
71e0498c49 Fight some more short variable names 2021-01-17 23:18:20 +01:00
Armin Ronacher
0fb88ebe7d Avoid one character names in myers 2021-01-17 23:14:30 +01:00
Armin Ronacher
e556888ce5 Some more saner variable names 2021-01-17 23:10:01 +01:00
Armin Ronacher
af43d14243 Remove a macro for myers 2021-01-17 23:07:03 +01:00
Armin Ronacher
fa11404bcb Fight bad variable names in replacer 2021-01-17 22:59:50 +01:00
Armin Ronacher
e1c6cb8a42 Reorder fields in patience diff 2021-01-17 22:41:45 +01:00
Armin Ronacher
5ba816486e Fight some one character variable names 2021-01-17 22:38:02 +01:00
Armin Ronacher
3308d7b4d6 Initial implementation 2021-01-17 22:18:57 +01:00