summaryrefslogtreecommitdiff
path: root/Annex/Version.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2016-03-29 12:05:02 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2016-03-29 12:05:02 -0400
commitd88340524510e82c4fce59f33f64d8e25031ae9e (patch)
tree1934b21a4fae949610a1dfee49c331a7816cde70 /Annex/Version.hs
parent3b7202cb47f89547e09f6fd219d73c88d4e52bc6 (diff)
limit git annex adjust to v6 mode
doesn't work in v5
Diffstat (limited to 'Annex/Version.hs')
-rw-r--r--Annex/Version.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/Annex/Version.hs b/Annex/Version.hs
index f294f8cd3..b5f038c0d 100644
--- a/Annex/Version.hs
+++ b/Annex/Version.hs
@@ -52,6 +52,9 @@ versionSupportsUnlockedPointers = go <$> getVersion
go (Just "6") = True
go _ = False
+versionSupportsAdjustedBranch :: Annex Bool
+versionSupportsAdjustedBranch = versionSupportsUnlockedPointers
+
setVersion :: Version -> Annex ()
setVersion = setConfig versionField