port git_gone to 0.60 era syntax (#170)

TIL `each { |it| echo $it }` :)
This commit is contained in:
Eli Flanagan 2022-03-02 13:26:24 -05:00 committed by GitHub
parent 77b74c02ef
commit 1edddaf160
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,3 +1,2 @@
# gently try to delete merged branches, excluding the checked out one
# This is an alternative to git_branchcleanup.nu
git branch --merged | lines | where $it !~ '*' | str trim | where $it != 'master' && $it != 'main' | each { git branch -d $it }
git branch --merged | lines | where $it !~ '*' | str trim | where $it != 'master' && $it != 'main' | each { |it| git branch -d $it }