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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue