diff options
author | Michele Locati <michele@locati.it> | 2018-03-15 17:09:18 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-03-15 17:41:51 (GMT) |
commit | 0a0eb2e585788567094248652fc20450a0db642b (patch) | |
tree | 69e102a753ff6042747c5466dae8f58bfa2081a1 /Documentation/git-filter-branch.txt | |
parent | 38e79b1fdab9244e1727d0698afcf3bb8956c0a4 (diff) | |
download | git-0a0eb2e585788567094248652fc20450a0db642b.zip git-0a0eb2e585788567094248652fc20450a0db642b.tar.gz git-0a0eb2e585788567094248652fc20450a0db642b.tar.bz2 |
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>
Diffstat (limited to 'Documentation/git-filter-branch.txt')
-rw-r--r-- | Documentation/git-filter-branch.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/git-filter-branch.txt b/Documentation/git-filter-branch.txt index 3a52e4d..b634043 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 -------- |