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

Re: How to git diff files in renamed directories

From
DWDamien Wyart <damien.wyart@gmail.com>
Date
Mar 15, 2012, 08:51 UTC
Message-ID
<20120315085105.GA27243@brouette>
In-Reply-To
<CAGATVH7KCr+dJNpx18==3BT8pzsvKeV5aYRWKts7xH0YZ8yaKw@mail.gmail.com>
Hi,
* Patrick Sabin <patrick.just4fun@gmail.com> [2012-03-15 09:32]:
> I want to diff a renamed file (to a different directory) in different
> commits.

You can try the "-C" option to git diff. In some cases, "-C -C" might be needed (with potentially bad performance).

-- 
Damien
Previous: Patrick SabinNext: Neal Kreitzinger
Message 2 of 4 in “How to git diff files in renamed directories”
  1. Patrick SabinMar 15, 2012
  2. Damien WyartMar 15, 2012
  3. Neal KreitzingerMar 15, 2012
  4. Junio C HamanoMar 15, 2012

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.