threads / discuss / 25429

Documentation for git gui blame

Subject: Documentation for git gui blame

## tl;dr

5 messages between Oct 12, 2010 and Oct 13, 2010.

replies: 4people: 3as markdown or json

Joshua Jensen· Oct 12, 2010, 16:12 UTC · lore
  Is there any documentation for git gui blame that explains what the 
two left columns containing 4 letter SHAs are?
What does "Blame Parent Commit" mean?
Thanks!
Josh
Chris Packham· Oct 12, 2010, 16:27 UTC · re: Joshua Jensen · lore

Re: Documentation for git gui blame

On 12/10/10 09:12, Joshua Jensen wrote:
>  Is there any documentation for git gui blame 

Not sure but it's displaying the same info as git blame so start with man git-blame. That probably covers most of what you want to know

> that explains what the two left columns containing 4 letter SHAs are?

These are the first 4 characters of the commit id that last added/changed that line of code. Basically the standard abbreviated 8 character SHA1 would take up too much screen real estate. You can still use a 4 character SHA as long as there aren't any commits in your tree that start with the same 4 characters (the possibility of collisions exists with 8 character ones too, it's just less likely).

> 
> What does "Blame Parent Commit" mean?
> 

It means that you have decided that the commit that it currently has selected is not interesting and you want to see the previous commit that modified that section (e.g. it was just some formatting change and you want the commit that actually added the code in question).

Show 7 quoted lines
> Thanks!
> 
> Josh
> -- 
> 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
Jakub Narebski· Oct 12, 2010, 19:50 UTC · re: Chris Packham · lore

Re: Documentation for git gui blame

Chris Packham <judge.packham@gmail.com> writes:
Show 10 quoted lines
> On 12/10/10 09:12, Joshua Jensen wrote:
> >  Is there any documentation for git gui blame 
> 
> Not sure but it's displaying the same info as git blame so start with
> man git-blame. That probably covers most of what you want to know
> 
> > that explains what the two left columns containing 4 letter SHAs are?
> 
> These are the first 4 characters of the commit id that last
> added/changed that line of code.

Note that there are *two* columns because one column contains plain blame, and second contains blame with code movement and copying detection and discarding changes in whitespace (like "git blame -C -C -w"). So if those columns are different, one column would show commit that put code here, and the other would show commit that changed this code.

-- 
Jakub Narebski
Poland
ShadeHawk on #git
Chris Packham· Oct 12, 2010, 21:46 UTC · re: Jakub Narebski · lore

Re: Documentation for git gui blame

On 12/10/10 12:50, Jakub Narebski wrote:
Show 18 quoted lines
> Chris Packham <judge.packham@gmail.com> writes:
> 
>> On 12/10/10 09:12, Joshua Jensen wrote:
>>>  Is there any documentation for git gui blame 
>>
>> Not sure but it's displaying the same info as git blame so start with
>> man git-blame. That probably covers most of what you want to know
>>
>>> that explains what the two left columns containing 4 letter SHAs are?
>>
>> These are the first 4 characters of the commit id that last
>> added/changed that line of code.
> 
> Note that there are *two* columns because one column contains plain blame,
> and second contains blame with code movement and copying detection and
> discarding changes in whitespace (like "git blame -C -C -w").  So if those
> columns are different, one column would show commit that put code here,
> and the other would show commit that changed this code.

Sorry, my bad I should have actually taken a look before responding (and read the question properly).

Joshua Jensen· Oct 13, 2010, 02:32 UTC · re: Jakub Narebski · lore

Re: Documentation for git gui blame

  ----- Original Message -----
From: Jakub Narebski
Date: 10/12/2010 1:50 PM
Show 11 quoted lines
> Chris Packham<judge.packham@gmail.com>  writes:
>
>> On 12/10/10 09:12, Joshua Jensen wrote:
>>>   Is there any documentation for git gui blame that explains what the two left columns containing 4 letter SHAs are?
>> These are the first 4 characters of the commit id that last
>> added/changed that line of code.
> Note that there are *two* columns because one column contains plain blame,
> and second contains blame with code movement and copying detection and
> discarding changes in whitespace (like "git blame -C -C -w").  So if those
> columns are different, one column would show commit that put code here,
> and the other would show commit that changed this code.
Ah, great!  That's what the other column is all about!
Thanks, Chris, for the Blame Parent Commit info, too.
Josh

← back to recent threads