Don't leak local var into global space
This commit is contained in:
@@ -17,7 +17,7 @@ ga() {
|
|||||||
# Remove worktree and branch from within active worktree directory.
|
# Remove worktree and branch from within active worktree directory.
|
||||||
gd() {
|
gd() {
|
||||||
if gum confirm "Remove worktree and branch?"; then
|
if gum confirm "Remove worktree and branch?"; then
|
||||||
local cwd base branch root
|
local cwd base branch root worktree
|
||||||
|
|
||||||
cwd="$(pwd)"
|
cwd="$(pwd)"
|
||||||
worktree="$(basename "$cwd")"
|
worktree="$(basename "$cwd")"
|
||||||
|
|||||||
Reference in New Issue
Block a user