1
1
mirror of https://github.com/github/semantic.git synced 2024-11-29 02:44:36 +03:00
Commit Graph

5026 Commits

Author SHA1 Message Date
Rob Rix
631778de13 Add a safeRange function. 2016-03-02 18:47:28 -05:00
Rob Rix
7dd9428dfa Use transpose to unpack the lines and ranges. 2016-03-02 18:34:26 -05:00
Rob Rix
c10a44e089 Add a transpose operation over Both. 2016-03-02 18:23:59 -05:00
Rob Rix
4d11dbe90d Tidy up with the curried constructor. 2016-03-02 18:19:29 -05:00
Rob Rix
595b249391 Transpose Both terms inline. 2016-03-02 18:18:13 -05:00
Rob Rix
1f783ea59a Use runBothWith to simplify packing and unpacking. 2016-03-02 18:15:27 -05:00
Rob Rix
1dee480afd Tacit definition of unpackLinesAndRanges. 2016-03-02 18:03:35 -05:00
Rob Rix
5cee42e6b2 Add a type annotation for unpackLinesAndRanges. 2016-03-02 16:19:00 -05:00
Rob Rix
37957e5123 Rearrange the pattern matching. 2016-03-02 16:17:04 -05:00
Rob Rix
96fe83e71b Use the curried constructor. 2016-03-02 16:15:22 -05:00
Rob Rix
72a61a5855 Remove an extra line. 2016-03-02 16:12:49 -05:00
Rob Rix
45357dddac Define the line/range bindings in a where clause. 2016-03-02 16:08:49 -05:00
Rob Rix
f3f5949ac8 Document splitPatchByLines. 2016-03-02 16:05:59 -05:00
Rob Rix
6fbeda67ec Extract splitPatchByLines into a new function. 2016-03-02 16:05:34 -05:00
Rob Rix
519ec11329 Remove the local categories binding. 2016-03-02 16:03:23 -05:00
Rob Rix
59d76412b2 Map Diff.categories over the annotations directly. 2016-03-02 16:03:14 -05:00
Rob Rix
7fb7506016 Move the Has typeclass to the bottom of the file. 2016-03-02 15:55:23 -05:00
Josh Vera
5a7046d866 Merge pull request #487 from github/sort-keyed-children-by-range
Sort Keyed children by range
2016-03-02 15:22:24 -05:00
Rob Rix
8ed7620f40 #433 has been fixed. 2016-03-02 15:02:58 -05:00
Rob Rix
380890b4d4 Sort diffs by their ranges. 2016-03-02 14:57:42 -05:00
Rob Rix
cbfc8d8593 Don’t fmap so hard! 2016-03-02 14:42:39 -05:00
Rob Rix
2ac2aef7f0 Sequence to construct ranges. 2016-03-02 14:40:14 -05:00
Rob Rix
a55a8b0e26 Add a type annotation for makeRanges. 2016-03-02 14:37:25 -05:00
Rob Rix
4d57b20f76 Get patch ranges using unPatch. 2016-03-02 14:31:41 -05:00
Rob Rix
6389f7bbc6 Implement extract over Cofree. 2016-03-02 14:31:41 -05:00
Rob Rix
6478982b3d Map over both infos. 2016-03-02 14:31:41 -05:00
Rob Rix
b9b4a9c7f6 Return ranges in Both. 2016-03-02 14:31:41 -05:00
Rob Rix
af137dedbf Compute the ranges of a diff. 2016-03-02 14:31:41 -05:00
Rob Rix
635fd254a3 Compute the starting points of a diff. 2016-03-02 14:31:41 -05:00
Rob Rix
0ff4df2e29 Implement before & after over Both. 2016-03-02 14:31:40 -05:00
Rob Rix
18394ec16b Produce Both sides of a Patch. 2016-03-02 14:31:40 -05:00
Rob Rix
4fdb830c87 Correct an unused binding warning. 2016-03-02 14:31:40 -05:00
Rob Rix
051c4f5530 Derive an Ord instance over Both. 2016-03-02 14:31:40 -05:00
Rob Rix
53b792e8b4 Sort the derived instances over Both. 2016-03-02 14:31:40 -05:00
Rob Rix
b913eeb2df Merge branch 'master' into sort-keyed-children-by-range 2016-03-02 13:36:46 -05:00
Josh Vera
df6410bd5d Merge pull request #486 from github/crashers-gonna-crash
Restore the `crashers crash` test to working.
2016-03-02 12:36:19 -05:00
Rob Rix
685c6a01de Merge branch 'master' into sort-keyed-children-by-range 2016-03-02 12:30:02 -05:00
Josh Vera
2c0014f26e Merge branch 'master' into crashers-gonna-crash 2016-03-02 12:24:40 -05:00
Josh Vera
fed41e6422 Merge pull request #465 from github/forward-compatible-rendering
Forward-compatible rendering
2016-03-02 12:24:21 -05:00
Rob Rix
dab1ae79a0 Test that moves crash. 2016-03-02 12:15:10 -05:00
Rob Rix
d6a4fb5daa Add a second pair of fixtures for #433. 2016-03-02 12:12:11 -05:00
Rob Rix
87eb17bb6b Rename the fixtures for #433. 2016-03-02 12:12:02 -05:00
Rob Rix
440f741658 Restore the crashers crash test to working.
cc @mdiep
2016-03-02 12:09:58 -05:00
Rob Rix
ff57f0db46 Rename the Annotated field accessors. 2016-03-02 11:52:20 -05:00
Rob Rix
53413003c6 Merge branch 'master' into forward-compatible-rendering 2016-03-02 11:31:09 -05:00
Rob Rix
4dd818e44a Merge pull request #484 from github/handle-null-oids
Output empty diffs for new empty files
2016-03-02 11:27:55 -05:00
joshvera
676f2a9149 Cleanup empty blob pattern matching 2016-03-02 11:19:45 -05:00
Rob Rix
ce65a540d2 Rebuild the fixtures. 2016-03-02 08:30:34 -05:00
Rob Rix
d1c2e91628 Empty lines are truly empty. 2016-03-02 08:29:40 -05:00
Rob Rix
3f7cdf88a7 Regenerate the JSON fixtures. 2016-03-02 08:18:25 -05:00