From e4d594c6bdcb25b996120fe21c901af7a08a7f6d Mon Sep 17 00:00:00 2001 From: Jon Loeliger Date: Fri, 16 May 2008 14:43:50 -0500 Subject: [PATCH] git-filter-branch: Clarify file removal example. Signed-off-by: Jon Loeliger Signed-off-by: Junio C Hamano --- Documentation/git-filter-branch.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/git-filter-branch.txt b/Documentation/git-filter-branch.txt index 6454e49bf2..4a530965ec 100644 --- a/Documentation/git-filter-branch.txt +++ b/Documentation/git-filter-branch.txt @@ -177,6 +177,10 @@ or copyright violation) from all commits: git filter-branch --tree-filter 'rm filename' HEAD ------------------------------------------------------- +However, if the file is absent from the tree of some commit, +a simple `rm filename` will fail for that tree and commit. +Thus you may instead want to use `rm -f filename` as the script. + A significantly faster version: -------------------------------------------------------------------------- -- 2.11.4.GIT