diff options
author | Joey Hess <joey@kitenet.net> | 2012-10-07 16:04:03 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-10-07 16:04:03 -0400 |
commit | 7793828a844b1c5e91ea61d6beef8c1d8aaf7379 (patch) | |
tree | 38a38b5332214aa5074da4f1eedf026f9f558afc /Annex/Version.hs | |
parent | 5aa000523befd1dee93d86f5784c05a856e807d3 (diff) |
uninit: Unset annex.version. Closes: #689852
Diffstat (limited to 'Annex/Version.hs')
-rw-r--r-- | Annex/Version.hs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Annex/Version.hs b/Annex/Version.hs index 7c909ae05..00e574929 100644 --- a/Annex/Version.hs +++ b/Annex/Version.hs @@ -33,6 +33,9 @@ getVersion = handle <$> getConfig versionField "" setVersion :: Annex () setVersion = setConfig versionField defaultVersion +removeVersion :: Annex () +removeVersion = unsetConfig versionField + checkVersion :: Version -> Annex () checkVersion v | v `elem` supportedVersions = noop |