Skip to content

Teach git-blame about renames (take 2)

Fredrik Kuivinen git 1 version In review

Get series with b4
b4 am 20060310092135.24015.26510.stgit@c165

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Changes since the previous version from the cover letter

* Fix the things pointed out by Junio.
* Some other minor clean-ups

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Make it possible to not clobber object.util in sort_in_topological_order (take 2)commit.c commit.h+39 -70 replies
2/3rev-lib: Make it easy to do rename tracking (take 2)rev-list.c revision.c revision.h+76 -480 replies
3/3blame: Rename detection (take 2)blame.c+199 -401 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/3] Teach git-blame about renames (take 2)

Changes since the previous version:

* Fix the things pointed out by Junio.
* Some other minor clean-ups

---

This patch series teaches git-blame about renames. To do this I have changed the revision.h interface a bit. In particular, it is now possible for the user of revision.h to specify a try_to_simply_commit-like function. That function can then do the rename tracking.

I have also made a small change to sort_in_topological_order to make it possible to use the object.util field at the same time as a topological sort is done. Previously the object.util field was clobbered by the topological sort. In the new interface the auxiliary data that the topological sort needs to store for each commit object is stored with a setter function and retrieved by a getter. Pointers to those functions are passed to sort_in_topological_order_fn.

- Fredrik