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

Re: How to git diff files in renamed directories

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 15, 2012, 20:49 UTC
Message-ID
<7vbonxk2sg.fsf@alter.siamese.dyndns.org>
In-Reply-To
<CAGATVH7KCr+dJNpx18==3BT8pzsvKeV5aYRWKts7xH0YZ8yaKw@mail.gmail.com>
Patrick Sabin <patrick.just4fun@gmail.com> writes:
Show 7 quoted lines
> I want to diff a renamed file (to a different directory) in different commits.
>
> File a was moved to the file subdir/c
>
> I tried:
>
> $ git diff b616d 0aa0 -- subdir/c a
Does
    $ git diff -M b616d 0aa0 -- subdir/c a
match them up?    
Previous: Neal Kreitzinger
Message 4 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.