Thread (1 message) 1 message, 1 author, 2016-06-15

Re: How do I specify a revision for "git blame" by date?

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:54:07

Andreas Schwab [off-list ref] writes:
perryh@pluto.rain.com writes:
quoted
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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help