I've been using Fugitive's Gblame recently but don't quite understand what "reblame" does.
Can someone describe a little more clearly what these options do:
- reblame at commit
~ reblame at [count]th first grandparent
P reblame at [count]th parent (like HEAD^[count])
Think of reblame as navigating to a commit and then running blame on your file or
git blame <commit> -- <file>
-
the simplest case. Use the commit in question under your cursor and reblame the file.~
Is equivalent to runninggit blame <rev>~[count] -- <file>
P
Is equivalent to runninggit blame <rev>^[count] -- <file>
For the common case, i.e. no
[count]
,~
andP
are the equivalent. (Note that[count]
defaults to 1)Quick revision tutorial taken from
git help gitrevisions
:To understand more about git revision notation see:
git help gitrevisions
For more help with
git blame
seegit help blame