Re: [PATCH v5 0/6] stash: support pathspec argument
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 17, 2017, 23:01 UTC
- Message-ID
- <xmqqfujcpgky.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <20170217224141.19183-1-t.gummerer@gmail.com>
Thomas Gummerer <t.gummerer@gmail.com> writes:
[some people may see this message twice, as I forgot to check if the copy I received had "Some A . Body" not enclosed in dq; blindly doing "Reply-All" ended up listing an invalid address on my Cc: line and dropped by vger. apologies]
Show 13 quoted lines
> diff --git a/git-stash.sh b/git-stash.sh
> index a184b1e274..1446fbe2e8 100755
> --- a/git-stash.sh
> +++ b/git-stash.sh
> @@ -67,51 +67,20 @@ create_stash () {
> case "$1" in
> -m|--message)
> shift
> - test -z ${1+x} && usage
> - stash_msg="$1"
> - new_style=t
> + stash_msg=${1-"BUG: create_stash () -m requires an argument"}
> ;;Did you mean ${1?"BUG: ..."} here and also "-u" below?Show 7 quoted lines
> -u|--include-untracked)
> shift
> - test -z ${1+x} && usage
> - untracked="$1"
> - new_style=t
> + untracked=${1-"BUG: create_stash () -u requires an argument"}
> ;;Other than that the whole series looked sensible to me.
Thanks, will replace but that may not happen today.