{"thread":{"id":"19136","subject":"finding the commit that deleted a file","startedAt":"2009-04-30T07:31:08Z","lastAt":"2009-04-30T08:33:37Z","messageCount":4,"participants":["Christoph Duelli","Alex Riesen","Baz"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"112739","messageId":"49F953BC.7070303@melosgmbh.de","threadId":"19136","inReplyTo":null,"subject":"finding the commit that deleted a file","fromName":"Christoph Duelli","fromEmail":"duelli@melosgmbh.de","sentAt":"2009-04-30T07:31:08Z","receivedAt":"2009-04-30T07:31:08Z","isPatch":false,"sender":{"key":"duelli@melosgmbh.de","avatar":null},"body":"Following scenario:\nSome file x was deleted (or renamed, but the --follow option does not \nsucceed) some 100 commits ago.\nNow, I would like to check the 'lost' contents for some reason.\n\nIs it possible to find out when a given file (path) was deleted?\n(And then, with the obtained SHA1, use gitk or some such tool to inspect \n  this file.)\n\nThank you.\n\nBest regards\n-- \nChristoph Duelli\n"},{"id":"112741","messageId":"81b0412b0904300041m2ac646cgdaffd4e2dadb9125@mail.gmail.com","threadId":"19136","inReplyTo":"49F953BC.7070303@melosgmbh.de","subject":"Re: finding the commit that deleted a file","fromName":"Alex Riesen","fromEmail":"raa.lkml@gmail.com","sentAt":"2009-04-30T07:41:46Z","receivedAt":"2009-04-30T07:41:46Z","isPatch":false,"sender":{"key":"raa.lkml@gmail.com","avatar":"https://avatars.githubusercontent.com/u/324101?v=4"},"body":"2009/4/30 Christoph Duelli <duelli@melosgmbh.de>:\n> Following scenario:\n> Some file x was deleted (or renamed, but the --follow option does not\n> succeed) some 100 commits ago.\n> Now, I would like to check the 'lost' contents for some reason.\n>\n> Is it possible to find out when a given file (path) was deleted?\n> (And then, with the obtained SHA1, use gitk or some such tool to inspect\n>  this file.)\n\n\"gitk -- the/name/of/deleted/file\" :)\n"},{"id":"112744","messageId":"2faad3050904300125r6cc6bc1fs6eb0e099dadcbf77@mail.gmail.com","threadId":"19136","inReplyTo":"81b0412b0904300041m2ac646cgdaffd4e2dadb9125@mail.gmail.com","subject":"Re: finding the commit that deleted a file","fromName":"Baz","fromEmail":"brian.ewins@gmail.com","sentAt":"2009-04-30T08:25:20Z","receivedAt":"2009-04-30T08:25:20Z","isPatch":false,"sender":{"key":"brian.ewins@gmail.com","avatar":"https://gravatar.com/avatar/9ac03d89105e50a7151e695a1b4b1228151064ec3ac380a73b74ab397796baf7?d=mp&s=160"},"body":"2009/4/30 Alex Riesen <raa.lkml@gmail.com>:\n> 2009/4/30 Christoph Duelli <duelli@melosgmbh.de>:\n>> Following scenario:\n>> Some file x was deleted (or renamed, but the --follow option does not\n>> succeed) some 100 commits ago.\n>> Now, I would like to check the 'lost' contents for some reason.\n>>\n>> Is it possible to find out when a given file (path) was deleted?\n\nFor completeness, the answer to the first part of the question:\n\ngit log --diff-filter=D -- the/name/of/deleted/file\n\n>> (And then, with the obtained SHA1, use gitk or some such tool to inspect\n>>  this file.)\n>\n> \"gitk -- the/name/of/deleted/file\" :)\n> --\n> To unsubscribe from this list: send the line \"unsubscribe git\" in\n> the body of a message to majordomo@vger.kernel.org\n> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n>\n"},{"id":"112746","messageId":"49F96261.3060104@melosgmbh.de","threadId":"19136","inReplyTo":"2faad3050904300125r6cc6bc1fs6eb0e099dadcbf77@mail.gmail.com","subject":"Re: finding the commit that deleted a file","fromName":"Christoph Duelli","fromEmail":"duelli@melosgmbh.de","sentAt":"2009-04-30T08:33:37Z","receivedAt":"2009-04-30T08:33:37Z","isPatch":false,"sender":{"key":"duelli@melosgmbh.de","avatar":null},"body":"Baz schrieb:\n> 2009/4/30 Alex Riesen <raa.lkml@gmail.com>:\n>> 2009/4/30 Christoph Duelli <duelli@melosgmbh.de>:\n>>> Following scenario:\n>>> Some file x was deleted (or renamed, but the --follow option does not\n>>> succeed) some 100 commits ago.\n>>> Now, I would like to check the 'lost' contents for some reason.\n>>>\n>>> Is it possible to find out when a given file (path) was deleted?\n> \n> For completeness, the answer to the first part of the question:\n> \n> git log --diff-filter=D -- the/name/of/deleted/file\n> \n>>> (And then, with the obtained SHA1, use gitk or some such tool to inspect\n>>>  this file.)\n>> \"gitk -- the/name/of/deleted/file\" :)\n>> --\nGreat, thanks.\nBoth of these work!\n\nBes regards\n-- \nChristoph Duelli\n"}]}