support --hide-missing adjustment of view branches
I had thought this would not make sense to combine with view branches, since removing files from a view changes metadata. However, that's committing removal of files. With --hide-missing, the files get removed when git-annex updates the branch itself, so there is no conflict. It does not seem likely to be very useful, but it does work! And that's nice because it means all types of adjusted branches can be combined with view branches. Sponsored-by: Max Thoursie on Patreon
This commit is contained in:
parent
1c4f4b449a
commit
bb54c8a633
2 changed files with 5 additions and 7 deletions
|
@ -516,10 +516,12 @@ applyView'' mkviewedfile getfilemetadata view madj l clean conv = do
|
|||
( stagepointerfile uh f k mtreeitemtype
|
||||
, stagesymlink uh f k
|
||||
)
|
||||
Just (PresenceAdjustment HideMissingAdjustment (Just UnlockAdjustment)) ->
|
||||
whenM (inAnnex k) $
|
||||
stagepointerfile uh f k mtreeitemtype
|
||||
Just (PresenceAdjustment HideMissingAdjustment _) ->
|
||||
whenM (inAnnex k)
|
||||
( stagesymlink uh f k
|
||||
)
|
||||
whenM (inAnnex k) $
|
||||
stagesymlink uh f k
|
||||
_ -> stagesymlink uh f k
|
||||
|
||||
stagesymlink uh f k = do
|
||||
|
|
|
@ -44,10 +44,6 @@ into the `_` directory and committing will unset the metadata.
|
|||
The name of the `_` directory can be changed using the annex.viewunsetdirectory
|
||||
git config.
|
||||
|
||||
In a view, annexed files are usually locked, but when both this command
|
||||
and [[git-annex-adjust]](1) are used, files in the view will be
|
||||
adjusted.
|
||||
|
||||
# OPTIONS
|
||||
|
||||
* The [[git-annex-common-options]](1) can be used.
|
||||
|
|
Loading…
Reference in a new issue