diff options
author | Joey Hess <joey@kitenet.net> | 2011-06-22 15:58:30 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-06-22 15:58:30 -0400 |
commit | 8166facaef8357a6e74b1038c082bd86386c2ecd (patch) | |
tree | 0d736de3672408c964de5eaadcc6bfbac88f5096 /Annex.hs | |
parent | d3f0106f2ed15a4e4abbc09cc3e985a27dfee662 (diff) |
Branch handling improvements
Support creating the branch.
Unified branch state into a single data type.
Only commit changes when the index has been changed.
Diffstat (limited to 'Annex.hs')
-rw-r--r-- | Annex.hs | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -23,7 +23,7 @@ import GitQueue import Types.Backend import Types.Remote import Types.Crypto -import Types.Branch +import Types.BranchState import TrustLevel import Types.UUID @@ -40,8 +40,7 @@ data AnnexState = AnnexState , quiet :: Bool , force :: Bool , fast :: Bool - , branchupdated :: Bool - , branchcache :: BranchCache + , branchstate :: BranchState , forcebackend :: Maybe String , forcenumcopies :: Maybe Int , defaultkey :: Maybe String @@ -62,8 +61,7 @@ newState allbackends gitrepo = AnnexState , quiet = False , force = False , fast = False - , branchupdated = False - , branchcache = emptyBranchCache + , branchstate = startBranchState , forcebackend = Nothing , forcenumcopies = Nothing , defaultkey = Nothing |