From: Johannes Sixt Date: Wed, 11 Nov 2009 08:58:43 GMT Subject: Re: [PATCH v5 1/2] filter-branch: stop special-casing $filter_subdir argument Message-ID: <4AFA7CC3.6020500@viscovery.net> In-Reply-To: <4AFA7B9A.4090005@viscovery.net> Johannes Sixt schrieb: > --- a/git-filter-branch.sh > +++ b/git-filter-branch.sh > @@ -266,7 +266,7 @@ > > # we need "--" only if there are no path arguments in $@ > nonrevs=$(git rev-parse --no-revs "$@") || exit > -dashdash=${nonrevs+"--"} > +test -z "$nonrevs" && dashdash=-- || dashdash= > rev_args=$(git rev-parse --revs-only "$@") > > case "$filter_subdir" in Arrgh! I should have indented these lines so that they do not count as patch text. Sorry. -- Hannes