Skip to content

Commit

Permalink
Merge pull request #17 from gennaro-tedesco/remove_branch
Browse files Browse the repository at this point in the history
replaced -d with -D in deleting branch
  • Loading branch information
Gennaro Tedesco authored Aug 9, 2022
2 parents dcb29bb + 0ad7daf commit a2eff09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gh-f
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -e

VERSION="gh-f 0.3.1"
VERSION="gh-f 0.3.2"

ID_COLOUR="\033[36m"
TEXT_COLOUR="\033[34m"
Expand Down Expand Up @@ -232,7 +232,7 @@ branches() {
ctrl-d) echo "$branch <-> $(git branch --show-current)" && git diff "$branch" ;;
ctrl-x)
read -rp "Delete branch \"$branch\"? [y|n] "
if [[ $REPLY =~ ^[Yy]$ ]]; then git branch -d "$branch"; fi
if [[ $REPLY =~ ^[Yy]$ ]]; then git branch -D "$branch"; fi
;;
esac

Expand Down

0 comments on commit a2eff09

Please sign in to comment.