git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
aa7e722
)
stash: simplify option parser for create
author
Ramkumar Ramachandra
<redacted>
Sat, 15 Jun 2013 13:13:24 +0000
(18:43 +0530)
committer
Junio C Hamano
<redacted>
Mon, 17 Jun 2013 16:22:12 +0000
(09:22 -0700)
The option parser for create unnecessarily checks "$1" inside a case
statement that matches "$1" in the first place.
Signed-off-by: Ramkumar Ramachandra <redacted>
Signed-off-by: Junio C Hamano <redacted>
git-stash.sh
patch
|
blob
|
history
diff --git
a/git-stash.sh
b/git-stash.sh
index bbefdf64244063f4708f381b8a772466d64e90e5..64800b8c945cbb478797eaa564c7c857494a6f44 100755
(executable)
--- a/
git-stash.sh
+++ b/
git-stash.sh
@@
-546,10
+546,7
@@
clear)
clear_stash "$@"
;;
create)
- if test $# -gt 0 && test "$1" = create
- then
- shift
- fi
+ shift
create_stash "$*" && echo "$w_commit"
;;
drop)
git clone https://git.99rst.org/PROJECT