diff options
author | Jeff King <peff@peff.net> | 2010-02-01 07:43:45 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-02-06 10:52:14 -0800 |
commit | d2d66f15b620c8e96219cfe339f32e77bfaf69b4 (patch) | |
tree | 5dc206dd1f49eff4abb5431c62a960c035e8de49 | |
parent | t9501: Re-fix max load test (diff) | |
download | tgif-d2d66f15b620c8e96219cfe339f32e77bfaf69b4.tar.xz |
docs: fix filter-branch example for quoted paths
If there is a quoted path, update-index will correctly
unquote it. However, we must take care to put our new prefix
inside the double-quote.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r-- | Documentation/git-filter-branch.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/git-filter-branch.txt b/Documentation/git-filter-branch.txt index cfaba2a305..020028cf9a 100644 --- a/Documentation/git-filter-branch.txt +++ b/Documentation/git-filter-branch.txt @@ -358,7 +358,7 @@ To move the whole tree into a subdirectory, or remove it from there: --------------------------------------------------------------- git filter-branch --index-filter \ - 'git ls-files -s | sed "s-\t-&newsubdir/-" | + 'git ls-files -s | sed "s-\t\"*-&newsubdir/-" | GIT_INDEX_FILE=$GIT_INDEX_FILE.new \ git update-index --index-info && mv $GIT_INDEX_FILE.new $GIT_INDEX_FILE' HEAD |