summaryrefslogtreecommitdiffstats
path: root/git-filter-branch.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-04-10 08:25:44 +0900
committerJunio C Hamano <gitster@pobox.com>2018-04-10 08:25:44 +0900
commitcb3e97dae806d66ea1859c48b9936d5bfbac9c09 (patch)
tree3d3da6c428f86dc03e8414f0ab25287ffe8dd2bb /git-filter-branch.sh
parentMerge branch 'ab/pcre-v2' (diff)
parentfilter-branch: return 2 when nothing to rewrite (diff)
downloadgit-cb3e97dae806d66ea1859c48b9936d5bfbac9c09.tar.xz
git-cb3e97dae806d66ea1859c48b9936d5bfbac9c09.zip
Merge branch 'ml/filter-branch-no-op-error'
"git filter-branch" learned to use a different exit code to allow the callers to tell the case where there was no new commits to rewrite from other error cases. * ml/filter-branch-no-op-error: filter-branch: return 2 when nothing to rewrite
Diffstat (limited to 'git-filter-branch.sh')
-rwxr-xr-xgit-filter-branch.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-filter-branch.sh b/git-filter-branch.sh
index 98c76ec589b..2587a01b9b4 100755
--- a/git-filter-branch.sh
+++ b/git-filter-branch.sh
@@ -310,7 +310,7 @@ git rev-list --reverse --topo-order --default HEAD \
die "Could not get the commits"
commits=$(wc -l <../revs | tr -d " ")
-test $commits -eq 0 && die "Found nothing to rewrite"
+test $commits -eq 0 && die_with_status 2 "Found nothing to rewrite"
# Rewrite the commits
report_progress ()