From: Christoph Duelli <duelli@melosgmbh.de>
To: Baz <brian.ewins@gmail.com>
Cc: Alex Riesen <raa.lkml@gmail.com>, git@vger.kernel.org
Subject: Re: finding the commit that deleted a file
Date: Thu, 30 Apr 2009 10:33:37 +0200 [thread overview]
Message-ID: <49F96261.3060104@melosgmbh.de> (raw)
In-Reply-To: <2faad3050904300125r6cc6bc1fs6eb0e099dadcbf77@mail.gmail.com>
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
prev parent reply other threads:[~2009-04-30 8:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49F96261.3060104@melosgmbh.de \
--to=duelli@melosgmbh.de \
--cc=brian.ewins@gmail.com \
--cc=git@vger.kernel.org \
--cc=raa.lkml@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).