Re: [PATCH] Add --no-rename to git-apply

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Junio C Hamano <gitster@...>
Cc: Robin Rosenberg <robin.rosenberg@...>, <git@...>
Date: Thursday, September 27, 2007 - 6:24 am

Hi,

On Wed, 26 Sep 2007, Junio C Hamano wrote:


Robin said in a follow-up mail that he needs it for a payed-for SCM 
(let's describe it as TransparentBox here), which insists on explicit 
renames.

But I suggest a simple script here which extracts from the diff the 
renames, which outputs a script which renames the file(s) back and then 
uses the TransparentBox' mv command:

sed -n -e "/^rename from/N" \
  -e "s/^rename from \(.*\)\nrename to \(.*\)/mv \2 \1 \&\& tb mv \1 \2/p" \
  < diff.patch

Ciao,
Dscho

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Add --no-rename to git-apply, Robin Rosenberg, (Wed Sep 26, 5:26 pm)
Re: [PATCH] Add --no-rename to git-apply, Junio C Hamano, (Thu Sep 27, 1:12 am)
Re: [PATCH] Add --no-rename to git-apply, Robin Rosenberg, (Thu Sep 27, 3:12 pm)
Re: [PATCH] Add --no-rename to git-apply, Johannes Schindelin, (Thu Sep 27, 6:24 am)
Re: [PATCH] Add --no-rename to git-apply, Robin Rosenberg, (Thu Sep 27, 3:04 pm)
Re: [PATCH] Add --no-rename to git-apply, Robin Rosenberg, (Wed Sep 26, 6:31 pm)