@@ -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
@@ -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
From: Johannes Schindelin <hidden> Date: 2016-06-15 22:47:14
Hi,
On Thu, 13 Aug 2009, Ori Avtalion wrote:
---
This is not a typo. '&' is sed's way to specify the matched string. Where
does it occur anyway (the commit message makes a fabulous place to put
such information)?
Ciao,
Dscho
From: Ori Avtalion <hidden> Date: 2016-06-15 22:47:14
On 08/13/2009 08:04 PM, Johannes Schindelin wrote:
This is not a typo. '&' is sed's way to specify the matched string. Where
does it occur anyway (the commit message makes a fabulous place to put
such information)?
Whoops! My mistake!
I think I accidentally removed it when I tried the example, and then
added it in a wrong position when that didn't work :)
Sorry for the false alarm!