mirror of
https://github.com/github/semantic.git
synced 2025-01-03 13:02:37 +03:00
Patches count as changes.
This commit is contained in:
parent
e5d345dca7
commit
fd05f7cb80
@ -157,7 +157,7 @@ tableOfContentsBy selector = fromMaybe [] . evalDiff diffAlgebra
|
||||
(Just a, Just []) -> Just [Changed a]
|
||||
(_ , entries) -> entries
|
||||
Var v -> join (envLookup v env)
|
||||
Patch patch -> foldMap (\ t -> fold t <> (pure . patchEntry patch <$> selector t)) patch
|
||||
Patch patch -> Just [] <> foldMap (\ t -> fold t <> (pure . patchEntry patch <$> selector t)) patch
|
||||
|
||||
patchEntry = these (const Deleted) (const Inserted) (const (const Replaced)) . unPatch
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user