[go: up one dir, main page]

Skip to content

Support creating branches from URL

Problem to solve

After

get merged in, it would be logical to continue this trend and support creating new branches from URL rather than showing an empty state when one doesn't exist. This refers to the confusion expressed in the comment.

Proposal

If the Web IDE is opened with a URL to a file & branch that don't exist, the Web IDE should create a branch and an empty file ready for editing.

https://gitlab.com/-/ide/project/<group>/<project>/edit/<non-existent-branch>/-/<non-existent-file>

The branch creation follows the normal path: it does not get created until the first commit has been pushed. Hence we avoid unnecessarily create branches that were mistyped or otherwise referenced by mistake in the URL.

What does success look like, and how can we measure that?

User should be able to create branch structure even for non-existent-yet branches with a URL only.

Links / references

/cc @dimitrieh