author | Brian Gernhardt <brian@gernhardtsoftware.com> | |
Fri, 24 Sep 2010 22:15:34 +0000 (18:15 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 27 Sep 2010 04:27:37 +0000 (21:27 -0700) | ||
commit | 9027fa9eb7df606b6658dd48a40bb993ce222ddd | |
tree | ff216c0ddd51651f61aeb8127d7a2d4bec6f0088 | tree | snapshot |
parent | 3fcb88785da831ad7d53cf18b4398099179c9c87 | commit | diff |
git-stash: fix flag parsing
Currently git-stash uses `git rev-parse --no-revs -- "$@"` to set its
FLAGS variable. This is the same as `FLAGS="-- $@"`. It should use
`git rev-parse --no-revs --flags "$@"`, but that eats any "-q" or
"--quiet" argument. So move the check for quiet before rev-parse.
Signed-off-by: Brian Gernhardt <brian@gernhardtsoftware.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Currently git-stash uses `git rev-parse --no-revs -- "$@"` to set its
FLAGS variable. This is the same as `FLAGS="-- $@"`. It should use
`git rev-parse --no-revs --flags "$@"`, but that eats any "-q" or
"--quiet" argument. So move the check for quiet before rev-parse.
Signed-off-by: Brian Gernhardt <brian@gernhardtsoftware.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-stash.sh | diff | blob | history | |
t/t3903-stash.sh | diff | blob | history |