git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* finding the commit that deleted a file
@ 2009-04-30  7:31 Christoph Duelli
  2009-04-30  7:41 ` Alex Riesen
  0 siblings, 1 reply; 4+ messages in thread
From: Christoph Duelli @ 2009-04-30  7:31 UTC (permalink / raw)
  To: git

Following scenario:
Some file x was deleted (or renamed, but the --follow option does not 
succeed) some 100 commits ago.
Now, I would like to check the 'lost' contents for some reason.

Is it possible to find out when a given file (path) was deleted?
(And then, with the obtained SHA1, use gitk or some such tool to inspect 
  this file.)

Thank you.

Best regards
-- 
Christoph Duelli

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: finding the commit that deleted a file
  2009-04-30  7:31 finding the commit that deleted a file Christoph Duelli
@ 2009-04-30  7:41 ` Alex Riesen
  2009-04-30  8:25   ` Baz
  0 siblings, 1 reply; 4+ messages in thread
From: Alex Riesen @ 2009-04-30  7:41 UTC (permalink / raw)
  To: Christoph Duelli; +Cc: git

2009/4/30 Christoph Duelli <duelli@melosgmbh.de>:
> Following scenario:
> Some file x was deleted (or renamed, but the --follow option does not
> succeed) some 100 commits ago.
> Now, I would like to check the 'lost' contents for some reason.
>
> Is it possible to find out when a given file (path) was deleted?
> (And then, with the obtained SHA1, use gitk or some such tool to inspect
>  this file.)

"gitk -- the/name/of/deleted/file" :)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: finding the commit that deleted a file
  2009-04-30  7:41 ` Alex Riesen
@ 2009-04-30  8:25   ` Baz
  2009-04-30  8:33     ` Christoph Duelli
  0 siblings, 1 reply; 4+ messages in thread
From: Baz @ 2009-04-30  8:25 UTC (permalink / raw)
  To: Alex Riesen; +Cc: Christoph Duelli, git

2009/4/30 Alex Riesen <raa.lkml@gmail.com>:
> 2009/4/30 Christoph Duelli <duelli@melosgmbh.de>:
>> Following scenario:
>> Some file x was deleted (or renamed, but the --follow option does not
>> succeed) some 100 commits ago.
>> Now, I would like to check the 'lost' contents for some reason.
>>
>> Is it possible to find out when a given file (path) was deleted?

For completeness, the answer to the first part of the question:

git log --diff-filter=D -- the/name/of/deleted/file

>> (And then, with the obtained SHA1, use gitk or some such tool to inspect
>>  this file.)
>
> "gitk -- the/name/of/deleted/file" :)
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: finding the commit that deleted a file
  2009-04-30  8:25   ` Baz
@ 2009-04-30  8:33     ` Christoph Duelli
  0 siblings, 0 replies; 4+ messages in thread
From: Christoph Duelli @ 2009-04-30  8:33 UTC (permalink / raw)
  To: Baz; +Cc: Alex Riesen, git

Baz schrieb:
> 2009/4/30 Alex Riesen <raa.lkml@gmail.com>:
>> 2009/4/30 Christoph Duelli <duelli@melosgmbh.de>:
>>> Following scenario:
>>> Some file x was deleted (or renamed, but the --follow option does not
>>> succeed) some 100 commits ago.
>>> Now, I would like to check the 'lost' contents for some reason.
>>>
>>> Is it possible to find out when a given file (path) was deleted?
> 
> For completeness, the answer to the first part of the question:
> 
> git log --diff-filter=D -- the/name/of/deleted/file
> 
>>> (And then, with the obtained SHA1, use gitk or some such tool to inspect
>>>  this file.)
>> "gitk -- the/name/of/deleted/file" :)
>> --
Great, thanks.
Both of these work!

Bes regards
-- 
Christoph Duelli

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-04-30  8:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-30  7:31 finding the commit that deleted a file Christoph Duelli
2009-04-30  7:41 ` Alex Riesen
2009-04-30  8:25   ` Baz
2009-04-30  8:33     ` Christoph Duelli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).