{"thread":{"id":"13227","subject":"history of a renamed file","startedAt":"2008-04-23T13:02:33Z","lastAt":"2008-04-23T14:05:26Z","messageCount":4,"participants":["Christoph Duelli","Jakub Narebski","Teemu Likonen"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"75059","messageId":"480F3369.5080203@melosgmbh.de","threadId":"13227","inReplyTo":null,"subject":"history of a renamed file","fromName":"Christoph Duelli","fromEmail":"duelli@melosgmbh.de","sentAt":"2008-04-23T13:02:33Z","receivedAt":"2008-04-23T13:02:33Z","isPatch":false,"sender":{"key":"duelli@melosgmbh.de","avatar":null},"body":"Given a repo that contains a file x.c\nthat got renamed from\nsome/path/x.c\nto\nnew/location/x.c\n\nIs it possible (ideally with gitk) to view the complete history of what \nis now new/location/x.c *including* the history of changes that occurred \nwhen it stil was some/path/x.c?\nWhen I say \"gitk new/location/x.c\" I get just the changes made starting \nwith the rename.\nWhen I call \"gitk\" and look for the changeset, the rename is detected, \nthough. Therefore I hope that it is somehow possible to obtain the \ncomplete file-specific history without truncation at renames.\n\nAny ideas?\n\nThank you, best regards\nChristoph\n"},{"id":"75061","messageId":"m3y774putc.fsf@localhost.localdomain","threadId":"13227","inReplyTo":"480F3369.5080203@melosgmbh.de","subject":"Re: history of a renamed file","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2008-04-23T13:25:19Z","receivedAt":"2008-04-23T13:25:19Z","isPatch":false,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"Christoph Duelli <duelli@melosgmbh.de> writes:\n\n> Given a repo that contains a file x.c\n> that got renamed from\n>   some/path/x.c\n> to\n>   new/location/x.c\n> \n> Is it possible (ideally with gitk) to view the complete history of\n> what is now new/location/x.c *including* the history of changes that\n> occurred when it stil was some/path/x.c?\n> When I say \"gitk new/location/x.c\" I get just the changes made\n> starting with the rename.\n> When I call \"gitk\" and look for the changeset, the rename is detected,\n> though. Therefore I hope that it is somehow possible to obtain the\n> complete file-specific history without truncation at renames.\n> \n> Any ideas?\n\nTry --follow option, see git-log(1), although I'm not sure if gitk\nsupports it (it should).\n\n-- \nJakub Narebski\nPoland\nShadeHawk on #git\n"},{"id":"75062","messageId":"480F3D63.1040809@melosgmbh.de","threadId":"13227","inReplyTo":"m3y774putc.fsf@localhost.localdomain","subject":"Re: history of a renamed file","fromName":"Christoph Duelli","fromEmail":"duelli@melosgmbh.de","sentAt":"2008-04-23T13:45:07Z","receivedAt":"2008-04-23T13:45:07Z","isPatch":false,"sender":{"key":"duelli@melosgmbh.de","avatar":null},"body":"Jakub Narebski schrieb:\n> Christoph Duelli <duelli@melosgmbh.de> writes:\n> \n>> Given a repo that contains a file x.c\n>> that got renamed from\n>>   some/path/x.c\n>> to\n>>   new/location/x.c\n>>\n>> Is it possible (ideally with gitk) to view the complete history of\n>> what is now new/location/x.c *including* the history of changes that\n>> occurred when it stil was some/path/x.c?\n>> When I say \"gitk new/location/x.c\" I get just the changes made\n>> starting with the rename.\n>> When I call \"gitk\" and look for the changeset, the rename is detected,\n>> though. Therefore I hope that it is somehow possible to obtain the\n>> complete file-specific history without truncation at renames.\n>>\n>> Any ideas?\n> \n> Try --follow option, see git-log(1), although I'm not sure if gitk\n> supports it (it should).\nWorks, thank you!\n\n-- \nChristoph Duelli\n"},{"id":"75064","messageId":"20080423140526.GC3291@mithlond.arda.local","threadId":"13227","inReplyTo":"m3y774putc.fsf@localhost.localdomain","subject":"Re: history of a renamed file","fromName":"Teemu Likonen","fromEmail":"tlikonen@iki.fi","sentAt":"2008-04-23T14:05:26Z","receivedAt":"2008-04-23T14:05:26Z","isPatch":false,"sender":{"key":"tlikonen@iki.fi","avatar":null},"body":"Jakub Narebski wrote (2008-04-23 06:25 -0700):\n\n> Christoph Duelli <duelli@melosgmbh.de> writes:\n> \n> > Is it possible (ideally with gitk) to view the complete history of\n> > what is now new/location/x.c *including* the history of changes that\n> > occurred when it stil was some/path/x.c?\n\n> Try --follow option, see git-log(1), although I'm not sure if gitk\n> supports it (it should).\n\ngitk certainly accepts '--follow' but the option does not work as\nexpected. For example try\n\n  gitk --follow -- utf8.c\n\nin the Git repository and get surprised. :-)\n\nI noticed the problem two weeks ago and Adam Simpkins elaborated it\na bit. See http://thread.gmane.org/gmane.comp.version-control.git/79008\n"}]}