git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Fix typo in filter-branch example

From
Ori Avtalion <ori@avtalion.name>
Date
Aug 13, 2009, 16:16 UTC
Message-ID
<4a843cdf.1608c00a.504c.0eed@mx.google.com>
---
 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 ab527b5..8cda87c 100644
--- a/Documentation/git-filter-branch.txt
+++ b/Documentation/git-filter-branch.txt
@@ -336,7 +336,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-\tnewsubdir/-" |
 		GIT_INDEX_FILE=$GIT_INDEX_FILE.new \
 			git update-index --index-info &&
 	 mv $GIT_INDEX_FILE.new $GIT_INDEX_FILE' HEAD
-- 
1.6.4.114.gefd1.dirty
Next: Michael J Gruber
Message 1 of 4 in “Fix typo in filter-branch example”
  1. Fix typo in filter-branch exampleOri Avtalion, Aug 13, 2009
  2. Michael J GruberAug 13, 2009
  3. Johannes SchindelinAug 13, 2009
  4. Ori AvtalionAug 13, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.