diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-10-27 11:15:12 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-10-27 11:15:12 +0200 |
commit | 32d44d3d43b21ff3fc1e718cab5b675e2b19bd47 (patch) | |
tree | 05eba55d6f3e33f6ab437d5cac82f2699a562990 /git/stash.sh | |
parent | 0e5a9e753e30be4aff2e6b4df00d402c49ba4507 (diff) |
Improve stash.sh script
Diffstat (limited to 'git/stash.sh')
-rwxr-xr-x | git/stash.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/git/stash.sh b/git/stash.sh index 139f294..4a3eb99 100755 --- a/git/stash.sh +++ b/git/stash.sh @@ -10,6 +10,15 @@ wd=`pwd` for i in $modules; do echo "stash $i" 1>&2 cd $i + + if [ "$1" = "pop" -o "$1" = "apply" ]; then + l=`git stash list` + if [ -z "$l" ]; then + cd $wd + continue + fi + fi + git stash $* if [ $? -ne 0 ]; then |