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

Re: [PATCH] Fix typo in filter-branch example

From
Michael J Gruber <git@drmicha.warpmail.net>
Date
Aug 13, 2009, 16:36 UTC
Message-ID
<4A844103.6030508@drmicha.warpmail.net>
In-Reply-To
<4a843cdf.1608c00a.504c.0eed@mx.google.com>
Ori Avtalion venit, vidit, dixit 13.08.2009 18:16:
Show 17 quoted lines
> ---
>  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
If \t is matched then isn't & == \t?
Michael
Previous: Ori AvtalionNext: Johannes Schindelin
Message 2 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.