summaryrefslogtreecommitdiff
path: root/Config.hs
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2015-12-04 16:14:11 -0400
committerJoey Hess <joeyh@joeyh.name>2015-12-04 16:14:11 -0400
commit34ead644d93085ab65cdeb21405539d4699424bc (patch)
treec4d60a323e83d16dcc3c8b85460c8a43f7a7b7d8 /Config.hs
parent723e4e31a1704aab69e87e29dc10db0b9e85c674 (diff)
auto-configure filter.annex.smudge and clean on init
Diffstat (limited to 'Config.hs')
-rw-r--r--Config.hs5
1 files changed, 5 insertions, 0 deletions
diff --git a/Config.hs b/Config.hs
index 4af4f12842..bddb8abe3d 100644
--- a/Config.hs
+++ b/Config.hs
@@ -90,3 +90,8 @@ setCrippledFileSystem :: Bool -> Annex ()
setCrippledFileSystem b = do
setConfig (annexConfig "crippledfilesystem") (Git.Config.boolConfig b)
Annex.changeGitConfig $ \c -> c { annexCrippledFileSystem = b }
+
+configureSmudgeFilter :: Annex ()
+configureSmudgeFilter = do
+ setConfig (ConfigKey "filter.annex.smudge") "git-annex smudge %f"
+ setConfig (ConfigKey "filter.annex.clean") "git-annex smudge --clean %f"