From ce888d0664ac210c746f724efffeda6e4b8558a4 Mon Sep 17 00:00:00 2001 From: Florian H Date: Sun, 3 Mar 2013 16:24:07 +0100 Subject: [PATCH 1/3] Execute a shell command, if the command is prefixed with ! --- bin/git-repl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bin/git-repl b/bin/git-repl index bdac2ea..a097fd1 100755 --- a/bin/git-repl +++ b/bin/git-repl @@ -27,8 +27,11 @@ while true; do quit) break;; esac - # Execute - eval git "$cmd" + if [[ $cmd == !* ]]; then + eval ${cmd:1} + else + eval git "$cmd" + fi done echo From ae5b59611772b6a25ba3f0170881e7e00ef04c9d Mon Sep 17 00:00:00 2001 From: Florian H Date: Sun, 3 Mar 2013 16:33:11 +0100 Subject: [PATCH 2/3] Execute commands that are already prefixed with git directly --- bin/git-repl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/git-repl b/bin/git-repl index a097fd1..90f2fcc 100755 --- a/bin/git-repl +++ b/bin/git-repl @@ -29,6 +29,8 @@ while true; do if [[ $cmd == !* ]]; then eval ${cmd:1} + elif [[ $cmd == git* ]]; then + eval $cmd else eval git "$cmd" fi From a79c51c7ad7067d55db8dcad3d4f451c550e5a80 Mon Sep 17 00:00:00 2001 From: Greg Allen Date: Thu, 7 Mar 2013 17:44:11 -0800 Subject: [PATCH 3/3] removed unnecessary git checkout for bug, feature and refactor --- bin/git-bug | 1 - bin/git-feature | 1 - bin/git-refactor | 1 - 3 files changed, 3 deletions(-) diff --git a/bin/git-bug b/bin/git-bug index d46b93e..4ce5437 100755 --- a/bin/git-bug +++ b/bin/git-bug @@ -8,5 +8,4 @@ else test -z $1 && echo "bug required." && exit 1 branch=bug/$1 git checkout -b $branch &> /dev/null - git checkout $branch &> /dev/null fi diff --git a/bin/git-feature b/bin/git-feature index aa33d9d..29aacd0 100755 --- a/bin/git-feature +++ b/bin/git-feature @@ -8,5 +8,4 @@ else test -z $1 && echo "feature required." 1>&2 && exit 1 branch=feature/$1 git checkout -b $branch &> /dev/null - git checkout $branch &> /dev/null fi diff --git a/bin/git-refactor b/bin/git-refactor index 2b50fc4..e87143a 100755 --- a/bin/git-refactor +++ b/bin/git-refactor @@ -8,5 +8,4 @@ else test -z $1 && echo "refactor required." 1>&2 && exit 1 branch=refactor/$1 git checkout -b $branch &> /dev/null - git checkout $branch &> /dev/null fi