OSDN Git Service

git-filter-branch: Clarify file removal example.
authorJon Loeliger <jdl@jdl.com>
Fri, 16 May 2008 19:43:50 +0000 (14:43 -0500)
committerJunio C Hamano <gitster@pobox.com>
Fri, 16 May 2008 20:13:24 +0000 (13:13 -0700)
Signed-off-by: Jon Loeliger <jdl@jdl.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-filter-branch.txt

index 6454e49..4a53096 100644 (file)
@@ -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:
 
 --------------------------------------------------------------------------