abentley / oaf

A Git client that brings a more user-friendly CLI to Git.
Apache License 2.0
9 stars 1 forks source link

Switch needs to handle the case where the branch is already checked out #27

Closed abentley closed 3 years ago

abentley commented 3 years ago

$ nit switch REDACTED No changes to stash thread 'main' panicked at 'Failed to switch to REDACTED', src/main.rs:893:9 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace $ git switch REDACTED fatal: 'REDACTED' is already checked out at '/home/abentley/REDACTED'