annex.adjustedbranchrefresh
Added annex.adjustedbranchrefresh git config to update adjusted branches set up by git-annex adjust --unlock-present/--hide-missing. Note, in a few cases, I was not able to make the adjusted branch be updated in calls to moveAnnex, because information about what file corresponds to a key is not available. They are: * If two files point to one file, then eg, `git annex get foo` will update the branch to unlock foo, but will not unlock bar, because it does not know about it. Might be fixable by making `git annex get bar` do something besides skipping bar? * git-annex-shell recvkey likewise (so sends over ssh from old versions of git-annex) * git-annex setkey * git-annex transferkey if the user does not use --file * git-annex multicast sends keys with no associated file info Doing a single full refresh at the end, after any incremental refresh, will deal with those edge cases.
This commit is contained in:
parent
af6af35228
commit
0896038ba7
28 changed files with 311 additions and 180 deletions
|
@ -125,6 +125,7 @@ data GitConfig = GitConfig
|
|||
, annexAutoUpgradeRepository :: Bool
|
||||
, annexCommitMode :: CommitMode
|
||||
, annexSkipUnknown :: Bool
|
||||
, annexAdjustedBranchRefresh :: Integer
|
||||
, coreSymlinks :: Bool
|
||||
, coreSharedRepository :: SharedRepository
|
||||
, receiveDenyCurrentBranch :: DenyCurrentBranch
|
||||
|
@ -219,6 +220,10 @@ extractGitConfig configsource r = GitConfig
|
|||
then ManualCommit
|
||||
else AutomaticCommit
|
||||
, annexSkipUnknown = getbool (annexConfig "skipunknown") True
|
||||
, annexAdjustedBranchRefresh = fromMaybe
|
||||
-- parse as bool if it's not a number
|
||||
(if getbool "adjustedbranchrefresh" False then 1 else 0)
|
||||
(getmayberead (annexConfig "adjustedbranchrefresh"))
|
||||
, coreSymlinks = getbool "core.symlinks" True
|
||||
, coreSharedRepository = getSharedRepository r
|
||||
, receiveDenyCurrentBranch = getDenyCurrentBranch r
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue