public inbox for git@vger.kernel.org 
 help / color / mirror / Atom feed
* [PATCH 00/14] export and use commit_stack
@ 2025-12-24 17:03 René Scharfe
  2025-12-24 17:03 ` [PATCH 01/14] revision: export commit_stack René Scharfe
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: René Scharfe @ 2025-12-24 17:03 UTC (permalink / raw)
  To: git

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(-)

-- 
2.52.0


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2025-12-24 17:03 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-24 17:03 [PATCH 00/14] export and use commit_stack René Scharfe
2025-12-24 17:03 ` [PATCH 01/14] revision: export commit_stack René Scharfe
2025-12-24 17:03 ` [PATCH 02/14] log: use commit_stack René Scharfe
2025-12-24 17:03 ` [PATCH 03/14] midx: " René Scharfe
2025-12-24 17:03 ` [PATCH 04/14] name-rev: " René Scharfe
2025-12-24 17:03 ` [PATCH 05/14] remote: use commit_stack for local_commits René Scharfe
2025-12-24 17:03 ` [PATCH 06/14] remote: use commit_stack for sent_tips René Scharfe
2025-12-24 17:03 ` [PATCH 07/14] remote: use commit_stack for src_commits René Scharfe
2025-12-24 17:03 ` [PATCH 08/14] test-reach: use commit_stack René Scharfe
2025-12-24 17:03 ` [PATCH 09/14] commit: add commit_stack_init() René Scharfe
2025-12-24 17:03 ` [PATCH 10/14] pack-bitmap-write: use commit_stack René Scharfe
2025-12-24 17:03 ` [PATCH 11/14] shallow: " René Scharfe
2025-12-24 17:03 ` [PATCH 12/14] commit: add commit_stack_grow() René Scharfe
2025-12-24 17:03 ` [PATCH 13/14] commit-graph: use commit_stack René Scharfe
2025-12-24 17:03 ` [PATCH 14/14] commit-reach: " René Scharfe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox