git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Possible git blame bug?

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 13, 2017, 22:46 UTC
Message-ID
<xmqqy3w8lrr2.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<xmqqfuign7jw.fsf@gitster.mtv.corp.google.com>
Junio C Hamano <gitster@pobox.com> writes:
Show 24 quoted lines
> Domagoj Stolfa <domagoj.stolfa@gmail.com> writes:
>
>> For example, saying:
>>
>> $ git blame time.h --since=2017
>> ^e19f2a27ed8 (Domagoj Stolfa 2017-03-12 20:43:01 +0100  33) #ifndef _SYS_TIME_H_
>>
>> $ git blame time.h --since=2016
>> ^21613a57af9 (bz  2016-03-13 21:26:18 +0000  33) #ifndef _SYS_TIME_H_
>>
>> $ git blame time.h --since=2015
>> ^48507f436f0 (mav 2015-03-13 21:01:25 +0000  33) #ifndef _SYS_TIME_H_
>>
>> and so on, with different hashes.
>
> The output lines "^deadbeef" does *NOT* mean that commit deadbeef
> changed the revision.  It just is telling you that the hisory was
> dug down to that revision and it was found that since that revision
> there is no change (and you told the command not to bother looking
> beyond that time range, so we do not know what happened before that
> time).
> ...
> So it is entirely sane if you saw three boundary commits named with
> three different time ranges.

Side note. If the displaying of the boundary commit object names are distracting, the user can always use the -b option to blank them out.

Previous: Junio C HamanoNext: Domagoj Stolfa
Message 6 of 10 in “Possible git blame bug?”
  1. Domagoj StolfaMar 13, 2017
  2. Junio C HamanoMar 13, 2017
  3. Junio C HamanoMar 13, 2017
  4. Domagoj StolfaMar 13, 2017
  5. Junio C HamanoMar 13, 2017
  6. Junio C HamanoMar 13, 2017
  7. Domagoj StolfaMar 13, 2017
  8. Junio C HamanoMar 13, 2017
  9. Domagoj StolfaMar 13, 2017
  10. Domagoj StolfaMar 13, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.