mirror of
https://github.com/github/semantic.git
synced 2024-12-29 18:06:14 +03:00
Hunks have offsets.
This commit is contained in:
parent
1e1d6295da
commit
4d407e773f
@ -5,7 +5,7 @@ import Diff
|
||||
patch :: Diff a Info -> String -> String -> String
|
||||
patch diff sourceA sourceB = mconcat $ hunks diff sourceA sourceB
|
||||
|
||||
data Hunk = Hunk [Line]
|
||||
data Hunk = Hunk Int Int [Line]
|
||||
data Line = Insert String | Delete String | Context String
|
||||
|
||||
hunks :: Diff a Info -> String -> String -> [String]
|
||||
|
Loading…
Reference in New Issue
Block a user