darcs-2.12.5: a distributed, interactive, smart revision control system

Safe HaskellNone
LanguageHaskell2010

Darcs.Repository.Prefs

Synopsis

Documentation

deleteSources :: IO () Source #

delete references to other repositories. Used when cloning to a ssh destination. Assume the current working dir is the repository.

addRepoSource :: String -> DryRun -> RemoteRepos -> SetDefault -> IO () Source #

addRepoSource adds a new entry to _darcsprefsrepos and sets it as default in _darcsprefsdefaultrepo, unless --no-set-default or --dry-run is passed, or it is the same repository as the current one.

boringRegexps :: IO [Regex] Source #

boringRegexps returns a list of the boring regexps, from the local and global prefs/boring files. Any invalid regexps are filtered, preventing an exception in (potentially) pure code, when the regexps are used.

data FileType Source #

Constructors

BinaryFile 
TextFile 

Instances

globalPrefsDirDoc :: String Source #

The relative path of the global preference directory; ~/.darcs on Unix, and %APPDATA%/darcs on Windows. This is used for online documentation.

globalPrefsDir :: IO (Maybe FilePath) Source #

The path of the global preference directory; ~/.darcs on Unix, and %APPDATA%/darcs on Windows.

oldGlobalCacheDir :: IO (Maybe FilePath) Source #

oldGlobalCacheDir is the old cache path ~.darcscache now ony used with read-only access.