From b3d186476fcc63fe6aaa530679ca169f1727f821 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 15 Oct 2022 10:49:45 +0900 Subject: git: port the implementation of alias "git-sw" to Golang --- .config/git/config | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to '.config/git') diff --git a/.config/git/config b/.config/git/config index 9036d3e..6e795b8 100644 --- a/.config/git/config +++ b/.config/git/config @@ -62,13 +62,7 @@ fixup = commit --fixup amend = commit --amend --no-edit clone1 = clone --depth=1 - sw = "!__fn() { \ - if [[ \"$1\" == origin/* || \"$1\" == upstream/* ]]; then \ - git switch -d \"$@\"; \ - else \ - git switch \"$@\"; \ - fi; \ - }; __fn" + sw = "!~/bin/gitalias/git-sw" swc = switch -c swm = "!__fn() { \ if git rev-parse --verify --quiet main > /dev/null 2>&1; then \ -- cgit v1.2.3-70-g09d2