Skip to content

Preparing for --date-order=author

Junio C Hamano git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3toposort: rename "lifo" fieldbuiltin/log.c builtin/show-branch.c commit.c +3 more+38 -202 replies
2/3commit-queue: LIFO or priority queue of commitsMakefile commit-queue.c commit-queue.h+104 -01 reply
3/3sort-in-topological-order: use commit-queuecommit-queue.c commit-queue.h commit.c+59 -310 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/3] Preparing for --date-order=author

These three patches introduce a commit-queue API to manage a set of commits in a priority queue, with a caller-specified comparison function. The priority queue replaces the singly-listed commit_list in the topological sort function.

The series applies on top of the commit-info-slab API sesries Peff and I did two months ago. These three patches do not use the slab API yet, but a follow-on patch to introduce REV_SORT_BY_AUTHOR_DATE needs to use commit-slab to record author date for the commits being sorted, and consult it in its comparison function when comparing the author dates of commits.

Junio C Hamano (3):
toposort: rename "lifo" field
commit-queue: LIFO or priority queue of commits
sort-in-topological-order: use commit-queue

 Makefile              |  2 ++
 builtin/log.c         |  2 +-
 builtin/show-branch.c | 14 +++++----
 commit-queue.c        | 84 +++++++++++++++++++++++++++++++++++++++++++++++++++
 commit-queue.h        | 34 +++++++++++++++++++++
 commit.c              | 70 +++++++++++++++++++++++++-----------------
 commit.h              | 14 +++++++--
 revision.c            | 10 +++---
 revision.h            |  6 +++-
 9 files changed, 193 insertions(+), 43 deletions(-)
 create mode 100644 commit-queue.c
 create mode 100644 commit-queue.h
Signature · 1 line
1.8.3-451-gb703ddf