gitui-org / gitui-org/gitui

Consider using `git-switch` instead of `git-checkout`

Open
#1,441 5 comments 4 reactions 0 assignees View on GitHub
dormant feature-request
Dominant language
Rust
Stars
22.5k
Forks
773
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**
It seems like currently gitui uses a command similar to [`git-checkout`](https://www.git-scm.com/docs/git-checkout) when changing branches or creating new branches. This has the drawback of not handling cases where there are uncommited changes in the working tree. (This is just the example I most commonly encounter. From what I gathered [`git-switch`](https://www.git-scm.com/docs/git-switch) is generally more versatile)

**Describe the solution you'd like**
I would like gitui to use a command similar to [`git-switch`](https://www.git-scm.com/docs/git-switch) when changing branches. This would allow me to change branches even if there are changes in the working tree.

**Describe alternatives you've considered**
Currently I exit out of gitui and run `git switch` manually from the command line.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.