All of lore.kernel.org
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Andreas Schwab <schwab@linux-m68k.org>
Cc: perryh@pluto.rain.com, git@vger.kernel.org
Subject: Re: How do I specify a revision for "git blame" by date?
Date: Thu, 14 Jun 2012 10:22:17 -0700	[thread overview]
Message-ID: <7vtxyderli.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <m2sjdynqlf.fsf@igel.home> (Andreas Schwab's message of "Thu, 14 Jun 2012 12:19:08 +0200")

Andreas Schwab <schwab@linux-m68k.org> writes:

> perryh@pluto.rain.com writes:
>
>> How do I get "git blame" to operate "as of" a particular date in
>> the past, without having to manually look up the corresponding
>> SHA1 using "git rev-list"?  For example, I can get a report as of
>> 2011-12-29 by doing something like:
>>
>>   $ git rev-list --all --date-order --format="%h %ai" .
>>   ...
>>   7c69106 2012-01-03 ...
>>   b4227af 2011-12-27 ...
>>   ...
>>
>>   $ git blame <file> b4227af
>
> You can use any rev-list option, so --until=2011-12-27 should work.

News to me.

  reply	other threads:[~2012-06-14 17:22 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-14 15:26 How do I specify a revision for "git blame" by date? perryh
2012-06-14 10:05 ` Thomas Rast
2012-06-15 13:02   ` perryh
2012-06-15 15:01     ` Jeff King
2012-06-15 15:53       ` Junio C Hamano
2012-06-16  4:13         ` perryh
2012-06-14 10:19 ` Andreas Schwab
2012-06-14 17:22   ` Junio C Hamano [this message]
2012-06-15 13:03   ` perryh

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=7vtxyderli.fsf@alter.siamese.dyndns.org \
    --to=gitster@pobox.com \
    --cc=git@vger.kernel.org \
    --cc=perryh@pluto.rain.com \
    --cc=schwab@linux-m68k.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.