I set the Editing branch
to dev
, do some editing, feel good about it and click on Merge changes into master
. At this point I have two problems:
- The
Editing branch
is set tomaster
. I think theEditing branch
should remaindev
, because it’s more likely that I want to keep editing thedev
rather than themaster
branch - I can edit the
master
branch and make a mess on the published version. I think themaster
branch should be read-only, it shouldn’t be editable not even after setting theEditing branch
tomaster
Traditional git workflows may limit the life of a branch to a short development period, and the branch may be deleted right after the merge, but in most simple Anvil apps there will be one long lasting dev
branch.
I think that the default behavior should be for the IDE to keep editing the dev
branch. Automatically switching to master
(or any merged branch) could be an option set while defining the environments or creating the branches or in the Look & feel.
I think that editing the branch that is served to a public URL should be absolutely impossible. At least absolutely by default impossible. I would like to see a Make branch read-only
when creating a branch or when defining an environment.