summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2018-04-10 08:25:44 +0900
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-04-10 08:25:44 +0900
commitcb3e97dae806d66ea1859c48b9936d5bfbac9c09 (patch)
tree3d3da6c428f86dc03e8414f0ab25287ffe8dd2bb /Documentation
parentMerge branch 'ab/pcre-v2' (diff)
parentfilter-branch: return 2 when nothing to rewrite (diff)
downloadtgif-cb3e97dae806d66ea1859c48b9936d5bfbac9c09.tar.xz
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 'Documentation')
-rw-r--r--Documentation/git-filter-branch.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/git-filter-branch.txt b/Documentation/git-filter-branch.txt
index 3a52e4dce3..b634043183 100644
--- a/Documentation/git-filter-branch.txt
+++ b/Documentation/git-filter-branch.txt
@@ -222,6 +222,14 @@ this purpose, they are instead rewritten to point at the nearest ancestor that
was not excluded.
+EXIT STATUS
+-----------
+
+On success, the exit status is `0`. If the filter can't find any commits to
+rewrite, the exit status is `2`. On any other error, the exit status may be
+any other non-zero value.
+
+
Examples
--------