overwrite old adjusted view branch
authorJoey Hess <joeyh@joeyh.name>
Mon, 27 Feb 2023 18:35:27 +0000 (14:35 -0400)
committerJoey Hess <joeyh@joeyh.name>
Mon, 27 Feb 2023 18:35:27 +0000 (14:35 -0400)
commit2a966f49f2118356cc6f1a6ce55f8d368f89e4bc
treeed16b30ece880729aa23dadfee49a4e70ab6c1fa
parent9b1fe37818e45db22c93e46111cd46ae26246829
overwrite old adjusted view branch

When git-annex adjust is run in a view branch, and the adjusted branch
already exists, overwrite the old adjusted branch with the new one
without being forced.

Usually overwriting an adjusted branch is avoided because it could lose
data. But when a view branch has been adjusted, there is no data to lose
in the adjusted branch, because the only changes that can be made of
significance are to move files between directories. Which changes
metadata on commit. And the old branch has already been committed.

Sponsored-by: Lawrence Brogan on Patreon
Annex/AdjustedBranch.hs