export and use commit_stack
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest14 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/14 | revision: export commit_stackcommit.c commit.h revision.c | +27 | 0 replies | |
| 2/14 | log: use commit_stackbuiltin/ | +15 | 0 replies | |
| 3/14 | midx: use commit_stackmidx-write.c | +12 | 0 replies | |
| 4/14 | name-rev: use commit_stackbuiltin/ | +6 | 0 replies | |
| 5/14 | remote: use commit_stack for local_commitsremote.c | +6 | 0 replies | |
| 6/14 | remote: use commit_stack for sent_tipsremote.c | +7 | 0 replies | |
| 7/14 | remote: use commit_stack for src_commitsremote.c | +7 | 0 replies | |
| 8/14 | test-reach: use commit_stackt/ | +14 | 0 replies | |
| 9/14 | commit: add commit_stack_init()commit.c commit.h | +9 | 0 replies | |
| 10/14 | pack-bitmap-write: use commit_stackpack-bitmap-write.c | +7 | 0 replies | |
| 11/14 | shallow: use commit_stackshallow.c shallow.h | +19 | 0 replies | |
| 12/14 | commit: add commit_stack_grow()commit.c commit.h | +7 | 0 replies | |
| 13/14 | commit-graph: use commit_stackcommit-graph.c | +39 | 0 replies | |
| 14/14 | commit-reach: use commit_stackcommit-reach.c | +12 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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