summaryrefslogtreecommitdiffstats
path: root/git-filter-branch.html
diff options
context:
space:
mode:
authorJunio C Hamano <junio@hera.kernel.org>2009-02-13 08:45:52 +0000
committerJunio C Hamano <junio@hera.kernel.org>2009-02-13 08:45:52 +0000
commitec3b9a7c740602964acf4b5a31612500c3aefb74 (patch)
treead8e99be0efb3752456489559ff8d42f970da2ab /git-filter-branch.html
parent001a3e6a8d22aa137a852872db6f306e8cfaf6e7 (diff)
downloadgit-htmldocs-ec3b9a7c740602964acf4b5a31612500c3aefb74.tar.gz
Autogenerated HTML docs for v1.6.2-rc0-61-g5cd12
Diffstat (limited to 'git-filter-branch.html')
-rw-r--r--git-filter-branch.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/git-filter-branch.html b/git-filter-branch.html
index 73ab3c4b7..c423322eb 100644
--- a/git-filter-branch.html
+++ b/git-filter-branch.html
@@ -573,6 +573,10 @@ Thus you may instead want to use <tt>rm -f filename</tt> as the script.</p></div
<pre><tt>git filter-branch --index-filter 'git rm --cached filename' HEAD</tt></pre>
</div></div>
<div class="para"><p>Now, you will get the rewritten history saved in HEAD.</p></div>
+<div class="para"><p>As with using <tt>rm filename</tt>, <tt>git rm --cached filename</tt> will fail
+if the file is absent from the tree of a commit. If it is not important
+whether the file is already absent from the tree, you can use
+<tt>git rm --cached --ignore-unmatch filename</tt> instead.</p></div>
<div class="para"><p>To rewrite the repository to look as if <tt>foodir/</tt> had been its project
root, and discard all other history:</p></div>
<div class="listingblock">
@@ -694,7 +698,7 @@ and the git list &lt;git@vger.kernel.org&gt;</p></div>
</div>
<div id="footer">
<div id="footer-text">
-Last updated 2009-01-11 08:16:03 UTC
+Last updated 2009-02-13 08:45:27 UTC
</div>
</div>
</body>