From 1b3f570b1b722f05b3e9a3d47dad3d94f4d824c8 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Tue, 4 Feb 2014 13:58:03 +0900 Subject: [PATCH] update git branches --- setup.sh | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/setup.sh b/setup.sh index edc5b0e..6764a0b 100755 --- a/setup.sh +++ b/setup.sh @@ -137,12 +137,15 @@ setup_gitconf(){ $_gc alias.addi "add -i" $_gc alias.clean-p "!test -z \"\$(git status -s -uno)\"" - # alias open-branch and close-branch, which can be useful for topic branching - $_gc alias.open-branch "checkout -b" - $_gc alias.close-branch \ - "!sh -cx 'git stash && git checkout master && git merge --no-ff -'" - $_gc alias.open "open-branch" - $_gc alias.close "close-branch" + # alias open-branch and close-branch, which will be useful for topic branch + # workflow + _git_open_branch="checkout -b" + _git_close_branch="!sh -cx 'git stash && \ +git checkout master && git merge --no-ff -'" + $_gc alias.open-branch "$_git_open_branch" + $_gc alias.close-branch "$_git_close_branch" + $_gc alias.o "$_git_open_branch" + $_gc alias.c "$_git_close_branch" $_gc alias.todo "grep -E -i 'todo:|note:|fixme:'"