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

Re: history of a renamed file

From
CDChristoph Duelli <duelli@melosgmbh.de>
Date
Apr 23, 2008, 13:45 UTC
Message-ID
<480F3D63.1040809@melosgmbh.de>
In-Reply-To
<m3y774putc.fsf@localhost.localdomain>
Jakub Narebski schrieb:
Show 21 quoted lines
> Christoph Duelli <duelli@melosgmbh.de> writes:
> 
>> Given a repo that contains a file x.c
>> that got renamed from
>>   some/path/x.c
>> to
>>   new/location/x.c
>>
>> Is it possible (ideally with gitk) to view the complete history of
>> what is now new/location/x.c *including* the history of changes that
>> occurred when it stil was some/path/x.c?
>> When I say "gitk new/location/x.c" I get just the changes made
>> starting with the rename.
>> When I call "gitk" and look for the changeset, the rename is detected,
>> though. Therefore I hope that it is somehow possible to obtain the
>> complete file-specific history without truncation at renames.
>>
>> Any ideas?
> 
> Try --follow option, see git-log(1), although I'm not sure if gitk
> supports it (it should).
Works, thank you!
-- 
Christoph Duelli
Previous: Jakub NarebskiNext: Teemu Likonen
Message 3 of 4 in “history of a renamed file”
  1. Christoph DuelliApr 23, 2008
  2. Jakub NarebskiApr 23, 2008
  3. Christoph DuelliApr 23, 2008
  4. Teemu LikonenApr 23, 2008

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.