[giti] giti branch delete
: If user deleted current branch, switch them to main development branch
#272
Labels
giti branch delete
: If user deleted current branch, switch them to main development branch
#272
Prerequisites
Install and run giti
./tuify
folder in your terminalnu run.nu install-giti
to installgiti
locally to~/.cargo/bin
giti
from anywhere on your systemgiti branch delete
Private giti design document
Task
User wants to delete current branch which is not main development branch. Main development branch is generally called main, master, develop or trunk.
Improve
giti branch delete
user experience (UX)Below are the UX steps:
Note: Issue #276 takes care of prefixing current branch with
(current)
.Current behaviour
Currently if a user is on a feature branch and then tries to delete that branch, they get an error.
Change that so if user is on a feature branch and then tries to delete that branch, we switch them to main/master branch and delete the current feature branch. If they don't have a main/master branch for whatever reason, we show them a single select component with the local branches to choose from.
The text was updated successfully, but these errors were encountered: