Skip to content

export and use commit_stack

René Scharfe git 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest14 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14revision: export commit_stackcommit.c commit.h revision.c+27 -230 replies
2/14log: use commit_stackbuiltin/log.c+15 -160 replies
3/14midx: use commit_stackmidx-write.c+12 -230 replies
4/14name-rev: use commit_stackbuiltin/name-rev.c+6 -110 replies
5/14remote: use commit_stack for local_commitsremote.c+6 -330 replies
6/14remote: use commit_stack for sent_tipsremote.c+7 -130 replies
7/14remote: use commit_stack for src_commitsremote.c+7 -80 replies
8/14test-reach: use commit_stackt/helper/test-reach.c+14 -200 replies
9/14commit: add commit_stack_init()commit.c commit.h+9 -20 replies
10/14pack-bitmap-write: use commit_stackpack-bitmap-write.c+7 -110 replies
11/14shallow: use commit_stackshallow.c shallow.h+19 -290 replies
12/14commit: add commit_stack_grow()commit.c commit.h+7 -10 replies
13/14commit-graph: use commit_stackcommit-graph.c+39 -470 replies
14/14commit-reach: use commit_stackcommit-reach.c+12 -130 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/14] export and use commit_stack

There are more than ten different variants of dynamic arrays of commit pointers. Pick one implementation, export it, add _init() and _grow() functions and use it to reduce code duplication.

revision: export commit_stack
log: use commit_stack
midx: use commit_stack
name-rev: use commit_stack
remote: use commit_stack for local_commits
remote: use commit_stack for sent_tips
remote: use commit_stack for src_commits
test-reach: use commit_stack

commit: add commit_stack_init()
pack-bitmap-write: use commit_stack
shallow: use commit_stack

commit: add commit_stack_grow()
commit-graph: use commit_stack
commit-reach: use commit_stack

 builtin/log.c         | 31 ++++++++--------
 builtin/name-rev.c    | 17 +++------
 commit-graph.c        | 86 ++++++++++++++++++++-----------------------
 commit-reach.c        | 25 ++++++-------
 commit.c              | 28 ++++++++++++++
 commit.h              | 12 ++++++
 midx-write.c          | 35 ++++++------------
 pack-bitmap-write.c   | 18 ++++-----
 remote.c              | 74 ++++++++++---------------------------
 revision.c            | 23 ------------
 shallow.c             | 44 +++++++++-------------
 shallow.h             |  4 +-
 t/helper/test-reach.c | 34 +++++++----------
 13 files changed, 184 insertions(+), 247 deletions(-)
Signature · 1 line
2.52.0