hmgit-1.0.0: The subset of awesome content tracker Git
LicenseBSD3
Maintainerfalgon53@yahoo.co.jp
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

HMGit.Internal.Parser.Pathspecs

Description

Matching patterns against file paths akin to the pathspec gitglossary(7) function.

Synopsis

Documentation

pathspecs Source #

Arguments

:: (MonadCatch m, MonadIO m, Alternative m) 
=> Path Abs Dir

The specified base directory

-> SomeBase File

The target file path

-> [String]

pathspecs

-> HMGitT m FilePath 

Determines if the path given with cDir as the base point matches the pattern, and if so, returns a FilePath of relative paths (including ../ etc.) from cDir (P.Path is not supported ../, so we must return as a string). If they do not match, some exception will be thrown.

lsMatches Source #

Arguments

:: (MonadCatch m, MonadIO m) 
=> Path Abs Dir

the specified base directory

-> [String]

pathspecs

-> HMGitT m (Set (Path Abs File))