sync in view branch updates the view branch

* sync: When run in a view branch, refresh the view branch to reflect any
    changes that have been made to the parent branch or metadata.

This is basically working, but probably needs some more work to deal with
all the edge cases of things sync does.

Sponsored-by: Lawrence Brogan on Patreon
This commit is contained in:
Joey Hess 2023-02-08 15:37:28 -04:00
parent a11d6e0baf
commit 5f9bf51438
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
6 changed files with 115 additions and 14 deletions

View file

@ -35,7 +35,7 @@ start [] = giveup "Specify metadata to include in view"
start ps = ifM safeToEnterView
( do
view <- mkView ps
go view =<< currentView
go view =<< currentView
, giveup "Not safe to enter view."
)
where