最近、Fugitive の Gblame を使用していますが、「reblame」が何をするのかよくわかりません。
誰かがこれらのオプションが何をするかをもう少し明確に説明できますか:
- reblame at commit
~ reblame at [count]th first grandparent
P reblame at [count]th parent (like HEAD^[count])
最近、Fugitive の Gblame を使用していますが、「reblame」が何をするのかよくわかりません。
誰かがこれらのオプションが何をするかをもう少し明確に説明できますか:
- reblame at commit
~ reblame at [count]th first grandparent
P reblame at [count]th parent (like HEAD^[count])
reblame は、コミットに移動してから、ファイルに対して Blame を実行することと考えてください。git blame <commit> -- <file>
-
最も単純なケース。カーソルの下にある問題のコミットを使用して、ファイルを再非難します。~
を実行することと同等です git blame <rev>~[count] -- <file>
P
を実行することと同等です git blame <rev>^[count] -- <file>
一般的なケースでは、つまり no[count]
とは等価です。(デフォルトは 1であることに注意してください)~
P
[count]
から取られたクイックリビジョンチュートリアルgit help gitrevisions
:
Here is an illustration, by Jon Loeliger.
Both commit nodes B and C are parents of commit node A.
Parent commits are ordered left-to-right.
G H I J
\ / \ /
D E F
\ | / \
\ | / |
\|/ |
B C
\ /
\ /
A
A = = A^0
B = A^ = A^1 = A~1
C = A^2 = A^2
D = A^^ = A^1^1 = A~2
E = B^2 = A^^2
F = B^3 = A^^3
G = A^^^ = A^1^1^1 = A~3
H = D^2 = B^^2 = A^^^2 = A~2^2
I = F^ = B^3^ = A^^3^
J = F^2 = B^3^2 = A^^3^2
git リビジョン表記の詳細については、以下を参照してください。
git help gitrevisions
詳細については、次をgit blame
参照してください。git help blame