support --unlock-present adjustment of view branches
authorJoey Hess <joeyh@joeyh.name>
Mon, 27 Feb 2023 19:29:28 +0000 (15:29 -0400)
committerJoey Hess <joeyh@joeyh.name>
Mon, 27 Feb 2023 19:37:57 +0000 (15:37 -0400)
commit1c4f4b449a827256450ebd0feb427b52c5ce95cf
tree1dcf8a9d067fe8dd29ac86c2be70bd6b7aac0351
parent7d839176c3fdf8c898c73b786fe5c96615c2b88a
support --unlock-present adjustment of view branches

When generating the view, check if the key is present.

When syncing in a view branch with an adjustment, run adjustedBranchRefreshFull
the same as is done when syncing in other adjusted branches. This is
needed because the docs for git-annex adjust --unlock-present suggest
using git-annex sync to update the branch when annex.adjustedbranchrefresh
is not set.

Note that, with annex.adjustedbranchrefresh set, it just works! The
adjusted branch gets updated in the usual way and it doesn't matter that
there's a view branch underneath.

And of course, re-running git-annex adjut --unlock-present also works,
as suggested in the docs.

Sponsored-by: Erik Bjäreholt on Patreon
Annex/View.hs
CHANGELOG
Command/Sync.hs
doc/git-annex-adjust.mdwn
doc/git-annex-view.mdwn