Re: [PATCH] Extend testing git-mv for renaming of subdirectories
- From
- Josef Weidendorfer <josef.weidendorfer@gmx.de>
- Date
- Jul 26, 2006, 16:02 UTC
- Message-ID
- <200607261802.33757.Josef.Weidendorfer@gmx.de>
- In-Reply-To
- <Pine.LNX.4.63.0607261721460.29667@wbgn013.biozentrum.uni-wuerzburg.de>
On Wednesday 26 July 2006 17:22, Johannes Schindelin wrote:
Show 7 quoted lines
> > Hmm... Renaming full subtrees worked since the old git-rename days. > > I just checked it, and it works fine. > > Thanks. > > And thanks again: since there is a test now, I'll have to implement that > feature, too, I guess ;-)
Sorry about that, but that was the reason for this patch ;-) I think it would be too bad for users to have this as regression.
When I first looked at the git-rename script, it wasn't clear to me that moving dirs actually works. The thing is that PERL's "rename" can move subdirectories. And on the git side, it does a grep with the dir name against the list of tracked files, so we catch all tracked files in the subdirectory.
Josef