1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 01:47:01 +03:00
Commit Graph

253 Commits

Author SHA1 Message Date
Matt Diephouse
61b65533ef printDiff can return a Renderer now 2016-01-14 15:10:56 -05:00
Matt Diephouse
3a9803ee15 Make Renderer take a pair of Source Chars 2016-01-14 15:09:47 -05:00
Matt Diephouse
fa68f78c39 Put the diff first 2016-01-14 14:56:00 -05:00
Matt Diephouse
78852e4041 Get rid of the where clause 2016-01-14 14:54:43 -05:00
Matt Diephouse
44a1c68f8f Create a separate diff function 2016-01-14 14:54:30 -05:00
Matt Diephouse
f0760188b9 Rename Renderer to Format
This is more consistent with the terminology around the command-line
`diff` tool.
2016-01-14 13:12:28 -05:00
Matt Diephouse
8d22bd0f5a Document the declarations in Main.hs 2016-01-13 14:29:37 -05:00
Matt Diephouse
fca9bb3dd2 Remove redundant do 2016-01-12 11:05:10 -05:00
Matt Diephouse
d2b4c48045 Rename replaceLeavesWithWordBranches to breakDownLeavesByWord 2016-01-12 11:01:13 -05:00
Matt Diephouse
a62d1defe2 Extract range and word extraction 2016-01-12 10:59:13 -05:00
Matt Diephouse
4dee96a7c2 Define by pattern matching instead of case analysis 2016-01-12 10:53:45 -05:00
Matt Diephouse
63a6bf326b Use cata in replaceLeavesWithWordBranches 2016-01-12 10:47:55 -05:00
Matt Diephouse
bce530858d Only deconstruct Info for leaves 2016-01-12 10:35:58 -05:00
Matt Diephouse
0ca0b4d453 Refactor to remove guard clause 2016-01-12 10:34:17 -05:00
Matt Diephouse
1cb83b4ea6 Get rid of substringing 2016-01-12 10:28:46 -05:00
Matt Diephouse
db78041edd Rename Argument to Arguments
Because there are in fact multiple arguments
2016-01-06 14:01:41 -05:00
joshvera
7a03ac709b missed one 2016-01-04 15:51:01 -05:00
joshvera
e3777a1c08 inline fmap 2016-01-04 14:50:16 -05:00
joshvera
44e9f50434 remove uses of lens 2016-01-04 14:48:55 -05:00
joshvera
15724218b8 Merge remote-tracking branch 'origin/master' into use-conduit 2016-01-04 14:26:18 -05:00
Rob Rix
09459a3421 Merge branch 'master' into patch 2015-12-30 18:55:42 -05:00
joshvera
24015141b7 Add conduit 2015-12-30 18:00:57 -05:00
joshvera
609e713580 Move printDiff to its own function 2015-12-30 18:00:44 -05:00
joshvera
16013ae454 read and transcode text to unicode 2015-12-29 17:34:28 -05:00
joshvera
a3051c531d Merge remote-tracking branch 'origin/master' into use-text 2015-12-29 15:13:57 -05:00
Rob Rix
0866ef52bd Merge branch 'diff-performance' into patch 2015-12-24 16:33:24 -05:00
Rob Rix
9343e9d4ae Do all formatting within Sources. 2015-12-24 00:20:47 -05:00
joshvera
888cad5791 pack file extension when passing to parserForType 2015-12-18 14:53:25 -05:00
joshvera
75a9a48249 eta reduce 2015-12-18 14:52:26 -05:00
joshvera
12df3007f1 output text when given Split option 2015-12-18 14:48:33 -05:00
joshvera
cfc4a97f9d Merge remote-tracking branch 'origin/master' into use-bytestrings 2015-12-18 14:43:25 -05:00
Rob Rix
e75827ad7f Qualify the PatchOutput import. 2015-12-18 08:23:28 -05:00
Rob Rix
5b150a72ae Render diffs as patches when --patch is used. 2015-12-17 17:23:06 -05:00
Rob Rix
10afe48d93 Add an argument to select patch output. 2015-12-17 17:19:13 -05:00
Rob Rix
e61140b10f Add a Patch case to Renderer. 2015-12-17 17:19:05 -05:00
Rob Rix
1504a985de Rename Parser to Parsers. 2015-12-16 16:21:49 -05:00
Rob Rix
6ea78f4318 Merge branch 'output-directory' into haskell-parser 2015-12-16 01:58:18 -05:00
Rob Rix
cd460e4567 Pass it to optional to make it optional, apparently. 2015-12-16 01:53:18 -05:00
Rob Rix
d0c3650045 Split the lines. 2015-12-16 01:42:53 -05:00
Rob Rix
dcbba9bf1b Replace the extension using the operator I guess? 2015-12-16 01:41:45 -05:00
Rob Rix
b26f16478f Provide a default value for the option.
I’m not sure that this is the best way of doing this.
2015-12-16 01:37:05 -05:00
Rob Rix
923e54ff9d Pick a filename if the output path is a directory. 2015-12-16 01:28:40 -05:00
Rob Rix
3a4c9f733d Move the write binding to the outer where clause. 2015-12-16 01:22:48 -05:00
Rob Rix
ed26ed4b80 Break the lambda out into a where clause. 2015-12-16 01:10:20 -05:00
Rob Rix
599663e83d 🔥 writeToFile. 2015-12-16 00:44:26 -05:00
Rob Rix
ba437bd477 Use case analysis instead of maybe. 2015-12-16 00:43:13 -05:00
Rob Rix
1ea542fccb Write split diffs to the output path or stdout. 2015-12-16 00:40:59 -05:00
Rob Rix
3216f77fce Add a helper to write files out. 2015-12-16 00:40:12 -05:00
Rob Rix
25394d2923 Import System.IO. 2015-12-16 00:39:07 -05:00
Rob Rix
5242c21b7a Rename the rendered diff bindings. 2015-12-16 00:26:13 -05:00