From: Petr Baudis Date: Tue, 22 Jul 2008 22:24:35 +0000 (+0200) Subject: Documentation/git-filter-branch: teach "rm" instead of "update-index --remove" X-Git-Tag: v1.6.0-rc1~53 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=eb72a51407228c8c7947e762d4f1c320712c9052;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/Documentation/git-filter-branch.txt b/Documentation/git-filter-branch.txt index a3edc0024..7ba9dab5e 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.