git-filter-branch: Clarify file removal example.
Signed-off-by: Jon Loeliger <jdl@jdl.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jon Loeliger committed
May 16, 2008 at 14:43 UTC
e4d594c6bdcb25b996120fe21c901af7a08a7f6d
1 file changed
+4
Documentation/git-filter-branch.txt
+4
@@ -177,6 +177,10 @@ or copyright violation) from all commits:
177
git filter-branch --tree-filter 'rm filename' HEAD
178
-------------------------------------------------------
179
180
+However, if the file is absent from the tree of some commit,
181
+a simple `rm filename` will fail for that tree and commit.
182
+Thus you may instead want to use `rm -f filename` as the script.
183
+
184
A significantly faster version:
185
186
--------------------------------------------------------------------------