Re: [PATCH] filter-branch: return 2 when nothing to rewrite
- From
Jeff King <peff@peff.net>
- Date
- Mar 15, 2018, 14:12 UTC
- Message-ID
- <20180315141220.GB27748@sigill.intra.peff.net>
- In-Reply-To
- <20180315130359.6108-1-michele@locati.it>
On Thu, Mar 15, 2018 at 02:03:59PM +0100, Michele Locati wrote:
> Using the --state-branch option allows us to perform incremental filtering. > This may lead to having nothing to rewrite in subsequent filtering, so we need > a way to recognize this case. > So, let's exit with 2 instead of 1 when this "error" occurs.
That sounds like a good feature. It doesn't look like we use "2" for anything else currently.
> --- > git-filter-branch.sh | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)
This should probably get a mention in the manpage at Documentation/git-filter-branch.txt, too.
Thanks.
-Peff