From afba5f9252c943a86b83f68b73c3d48eaf0d0527 Mon Sep 17 00:00:00 2001 From: William Hilton Date: Tue, 4 Aug 2015 16:42:34 -0400 Subject: [PATCH] Bugfix auto-stashing in 'get branch' --- bin/get | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/get b/bin/get index b4f5070..4aa5652 100755 --- a/bin/get +++ b/bin/get @@ -68,13 +68,13 @@ echo 'Switching to branch' if [ -z "$2" ]; then echo '! Specify branch name' else - git stash # Save branch index state + git stash save --include-untracked --quiet 'get-branch autostash' # Save branch index state if git rev-parse --verify --quiet "$2" > /dev/null; then git checkout "$2" else git checkout -b "$2" fi - git stash pop # Restore branch index state + git stash pop --quiet # Restore branch index state fi ;;