git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Baz <brian.ewins@gmail.com>
To: Alex Riesen <raa.lkml@gmail.com>
Cc: Christoph Duelli <duelli@melosgmbh.de>, git@vger.kernel.org
Subject: Re: finding the commit that deleted a file
Date: Thu, 30 Apr 2009 09:25:20 +0100	[thread overview]
Message-ID: <2faad3050904300125r6cc6bc1fs6eb0e099dadcbf77@mail.gmail.com> (raw)
In-Reply-To: <81b0412b0904300041m2ac646cgdaffd4e2dadb9125@mail.gmail.com>

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
>

  reply	other threads:[~2009-04-30  8:26 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 [this message]
2009-04-30  8:33     ` Christoph Duelli

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=2faad3050904300125r6cc6bc1fs6eb0e099dadcbf77@mail.gmail.com \
    --to=brian.ewins@gmail.com \
    --cc=duelli@melosgmbh.de \
    --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).