1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 15:35:14 +03:00
Commit Graph

5106 Commits

Author SHA1 Message Date
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
Rob Rix
d5f9b170d4 Line JSON contains the range of all the diffs on the line. 2016-03-02 08:16:27 -05:00
Rob Rix
5eaa843abc Use hasChanges in the JSON. 2016-03-02 08:05:53 -05:00
Rob Rix
ced884d79b Move hasChanges into the Alignment module. 2016-03-02 08:05:18 -05:00
Rob Rix
a34d31f97d Add a hasChanges field. 2016-03-02 08:04:17 -05:00
Rob Rix
a97fd599df Rewrite hasChanges to operate on a whole line. 2016-03-02 08:03:49 -05:00
Rob Rix
dbeb71fb61 Use <$ to determine if a diff has changes. 2016-03-02 08:01:11 -05:00
Rob Rix
8bc5ef427a Extract the line fields into a function. 2016-03-02 07:53:26 -05:00
Rob Rix
e7d6c122f7 Number lines. 2016-03-02 07:49:04 -05:00
joshvera
b124b461c0 Empty diffs have empty hunks 2016-03-01 17:13:53 -05:00
joshvera
9ee2e1c285 Revert "++text-icu"
This reverts commit 21d81bbabfe6ad192efbc8b111f39a3ba3871243.
2016-03-01 17:03:26 -05:00
joshvera
64dfc70d58 Derive Show and Eq for SourceBlob 2016-03-01 17:00:44 -05:00
joshvera
c9d8786347 Return an empty Hunk in case there's no diff 2016-03-01 17:00:30 -05:00
joshvera
291c66696c Don't include the offset header if the diff is empty 2016-03-01 17:00:09 -05:00
Rob Rix
2f47270400 Add a split diff fixture. 2016-03-01 16:32:08 -05:00
Rob Rix
d4efc9e7d5 Remove a diff in a format we no longer support. 2016-03-01 16:32:02 -05:00
Rob Rix
ede7895bf9 Move numberedRows into the Alignment module. 2016-03-01 16:29:42 -05:00
Rob Rix
655f14186f Remove the ToJSON instance for Line. 2016-03-01 15:22:39 -05:00
Rob Rix
7775554d59 Explicitly unwrap the lines. 2016-03-01 15:22:10 -05:00
joshvera
4bd70603b1 ++text-icu 2016-03-01 15:04:24 -05:00
joshvera
f8a8c2ecd5 Merge remote-tracking branch 'origin/master' into optional-sha-argument 2016-03-01 14:54:38 -05:00