Skip to content

Commit e4897db

Browse files
authored
fix: gbda worktree support (#109)
Signed-off-by: James Hillyerd <[email protected]>
1 parent 868190a commit e4897db

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

functions/gbda.fish

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
function gbda -d "Delete all branches merged in current HEAD, including squashed"
22
git branch --merged | \
3-
command grep -vE '^\*|^\s*(master|main|develop)\s*$' | \
3+
# *: current branch, +: current branch on worktree.
4+
command grep -vE '^\*|^\+|^\s*(master|main|develop)\s*$' | \
45
command xargs -r -n 1 git branch -d
56

67
set -l default_branch (__git.default_branch)

0 commit comments

Comments
 (0)