Skip to content

Conversation

@hramrach
Copy link
Contributor

@hramrach hramrach commented Dec 6, 2025

This is CreateBranch for branches that already exist making it possible to reset branch to an arbitrary commit.

Consistent with CreateFile/UpdateFile new branches are created by POST and existing branches updated by PUT.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Dec 6, 2025
@github-actions github-actions bot added modifies/api This PR adds API routes or modifies them modifies/go Pull requests that update Go code modifies/dependencies labels Dec 6, 2025
@hramrach hramrach force-pushed the api branch 2 times, most recently from d7a492f to fd43bfd Compare December 6, 2025 12:04
@hramrach
Copy link
Contributor Author

hramrach commented Dec 6, 2025

hm, missed there is #35951

The use of --force-with-lease is good idea

@hramrach hramrach force-pushed the api branch 3 times, most recently from 22f7ed1 to 38ec474 Compare December 6, 2025 13:29
This is CreateBranch for branches that already exist making it possible
to reset branch to an arbitrary commit.

Consistent with CreateFile/UpdateFile new branches are created by POST
and existing branches updated by PUT.
@lunny
Copy link
Member

lunny commented Dec 11, 2025

Replaced by #35951

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. modifies/api This PR adds API routes or modifies them modifies/dependencies modifies/go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants