summaryrefslogtreecommitdiff
path: root/Documentation/git-filter-branch.txt
diff options
context:
space:
mode:
authorPetr Baudis <pasky@suse.cz>2008-07-22 22:24:35 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-07-23 23:57:14 (GMT)
commiteb72a51407228c8c7947e762d4f1c320712c9052 (patch)
tree224de9acae00156d2e8125be453e4652795824b1 /Documentation/git-filter-branch.txt
parentf9bbefc701e319983bb8e13df8d615293c6f386a (diff)
downloadgit-eb72a51407228c8c7947e762d4f1c320712c9052.zip
git-eb72a51407228c8c7947e762d4f1c320712c9052.tar.gz
git-eb72a51407228c8c7947e762d4f1c320712c9052.tar.bz2
Documentation/git-filter-branch: teach "rm" instead of "update-index --remove"
The example to remove paths using index-filter was done with "git update-index --remove"; "git rm --cached" would be more familiar to new people and is sufficient for this particular case. Signed-off-by: Petr Baudis <pasky@suse.cz> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-filter-branch.txt')
-rw-r--r--Documentation/git-filter-branch.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/git-filter-branch.txt b/Documentation/git-filter-branch.txt
index a3edc00..7ba9dab 100644
--- a/Documentation/git-filter-branch.txt
+++ b/Documentation/git-filter-branch.txt
@@ -191,7 +191,7 @@ Thus you may instead want to use `rm -f filename` as the script.
A significantly faster version:
--------------------------------------------------------------------------
-git filter-branch --index-filter 'git update-index --remove filename' HEAD
+git filter-branch --index-filter 'git rm --cached filename' HEAD
--------------------------------------------------------------------------
Now, you will get the rewritten history saved in HEAD.