WIP: feat: add branch commands to CLI and TUI #37
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "sigil-03/3e9f497724af048a29b55100db55a290"
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?
Add ability to check out a feature branch for a given issue from both
the CLI and the TUI.
Branch name format: /<issue_uuid>
Username is taken from git config user.name, normalized to lowercase
with spaces replaced by underscores.
If the branch already exists, it is checked out. Otherwise, a new
branch is created and checked out.
CLI:
ent checkout <issue_id>
TUI:
Press 'b' on a highlighted issue (Overview or IssueDetail view) to
check out a feature branch for that issue.
bd27e9b044de43b15d0bthere are some minor formatting fixes rolled into this as well due to running
cargo fmtde43b15d0b7606756690feat: add 'ent checkout' CLI command and entui 'b' key bindingto feat: add worktree and branch commands to CLI and TUIThis seems like useful functionality, and i mostly like the code. Only thing i'm not sure about is the base of the branch that it creates - it currently bases the branch on whatever's currently checked out. Maybe that's the right behavior, or maybe it should be based on
main/master? Idk, just raising the question.eba4e2e1147606756690yeah actually that just bit me.
origin/mainbut i'm realizing that doesn't work for all repositories.is there a way in git to see what the mainline branch is?
feat: add worktree and branch commands to CLI and TUIto feat: add branch commands to CLI and TUIfeat: add branch commands to CLI and TUIto WIP: feat: add branch commands to CLI and TUIView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.