tea pr checkout
: dont create local branches #314
No reviewers
Labels
No Label
kind/breaking
kind/bug
kind/build
kind/dependency
kind/deployment
kind/docs
kind
enhancement
kind
feature
kind/proposal
kind
question
kind
refactor
kind/security
kind/testing
kind/translation
priority/critical
priority/high
priority/low
priority/medium
reviewed/duplicate
reviewed/invalid
reviewed/wontfix
skip-changelog
status/blocked
status/has-backport
status/has-pull
status/needs-backport
status/needs-feedback
status/needs-reviews
status/wip
upstream/gitea
upstream/sdk
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitea/tea#314
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "noerw/tea:checkout-use-remote-tracking-branch"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This avoids creation of local branches, to avoid cluttering the local repo:
refs/remotes/<remote>/<head>
), and suggest what to do if you want to make changes.I'm not certain this behaviour is actually better, I suggest leaving this open for a while for people to try out the new behaviour:
fixes #293
can we add a flag to let tea do, what normaly would be only suggested?
"
-b
to create the branch ..." ?I like the idea. If the
-b
is given, use that.added the
--branch
/-b
boolean flag. providing a branch name is not supported, as then the case of using the default branch name would be quite awkward:@ -8,3 +8,3 @@
"fmt"
"code.gitea.io/tea/modules/config"
"code.gitea.io/tea/modules/context"
unessesary adding context into task
i thing it still should be a boolean flag not a string ...
in the case a branch with same name exist but it is not the same one it should simply fail with a meningfull error