Skip to content

Blame in reverse

Junio C Hamano git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4"log" and friends: --children optionlog-tree.c revision.c revision.h+49 -01 reply
2/4builtin-blame.c: move prepare_final() into a separate function.builtin-blame.c+33 -230 replies
3/4builtin-blame.c: allow more than 16 parentsbuiltin-blame.c+61 -320 replies
4/4git-blame --reversebuiltin-blame.c+65 -160 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] Blame in reverse

This is still rough, but I think it would be a good foundation to build interesting archaeology tools on.

Usual "git blame" starts from the latest revision and finds where each line came from (i.e. who came up with that brilliant idea, or more often who introduced that bug). This new mode starts from an old revision, and annotates in reverse --- up to which point each line survived, before it got replaced with something else. A line that began its life in one file can be removed from the original file but migrate to another, and we will find its final resting place when you use the usual -C -C option.

[1/4] "log" and friends: --children option
[2/4] builtin-blame.c: move prepare_final() into a separate function. [3/4] builtin-blame.c: allow more than 16 parents
[4/4] git-blame --reverse

 builtin-blame.c |  206 +++++++++++++++++++++++++++++++++++++++----------------
 log-tree.c      |   20 ++++++
 revision.c      |   28 ++++++++
 revision.h      |    1 +
 4 files changed, 196 insertions(+), 59 deletions(-)