filter-branch: return 2 when nothing to rewrite
commit0a0eb2e585788567094248652fc20450a0db642b
authorMichele Locati <michele@locati.it>
Thu, 15 Mar 2018 17:09:18 +0000 (15 18:09 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 15 Mar 2018 17:41:51 +0000 (15 10:41 -0700)
tree69e102a753ff6042747c5466dae8f58bfa2081a1
parent38e79b1fdab9244e1727d0698afcf3bb8956c0a4
filter-branch: return 2 when nothing to rewrite

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.

Signed-off-by: Michele Locati <michele@locati.it>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-filter-branch.txt
git-filter-branch.sh