summaryrefslogtreecommitdiff
path: root/Types/FileMatcher.hs
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2015-02-06 16:03:02 -0400
committerJoey Hess <joeyh@joeyh.name>2015-02-06 16:03:02 -0400
commitb94eb9b22cf0a76f4fdc2d19088beff0af79a25a (patch)
tree504a0d3b0ea54ed082504567cb3571be8b47b844 /Types/FileMatcher.hs
parentdfab5e6ff4aac44abba49b464f1559ea75c9a4a9 (diff)
relFile does not have to be relative; rename to currFile
Diffstat (limited to 'Types/FileMatcher.hs')
-rw-r--r--Types/FileMatcher.hs6
1 files changed, 4 insertions, 2 deletions
diff --git a/Types/FileMatcher.hs b/Types/FileMatcher.hs
index a79bbd2585..377bba72a8 100644
--- a/Types/FileMatcher.hs
+++ b/Types/FileMatcher.hs
@@ -19,8 +19,10 @@ data MatchInfo
| MatchingKey Key
data FileInfo = FileInfo
- { relFile :: FilePath -- may be relative to cwd
- , matchFile :: FilePath -- filepath to match on; may be relative to top
+ { currFile :: FilePath
+ -- ^ current path to the file, for operations that examine it
+ , matchFile :: FilePath
+ -- ^ filepath to match on; may be relative to top of repo or cwd
}
type FileMatcherMap a = M.Map UUID (Utility.Matcher.Matcher (S.Set UUID -> MatchInfo -> a Bool))