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

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

From
Robin Rosenberg <robin.rosenberg@dewire.com>
Date
Sep 27, 2007, 19:04 UTC
Message-ID
<200709272104.18510.robin.rosenberg@dewire.com>
In-Reply-To
<Pine.LNX.4.64.0709271107530.28395@racer.site>
torsdag 27 september 2007 skrev Johannes Schindelin:
Show 12 quoted lines
> 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
> 

I tried something like that (integrated in the script), and the bugger noticed it and refused to work as exepected, but now that I think about it should be possible to fool it. I have to give it a go again and see what really actually went wrong.

-- robin
Previous: Johannes SchindelinNext: Robin Rosenberg
Message 5 of 6 in “Add --no-rename to git-apply”
  1. Add --no-rename to git-applyRobin Rosenberg, Sep 26, 2007
  2. Robin RosenbergSep 26, 2007
  3. Junio C HamanoSep 27, 2007
  4. Johannes SchindelinSep 27, 2007
  5. Robin RosenbergSep 27, 2007
  6. Robin RosenbergSep 27, 2007

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.