Skip to content

make builtin-commit use commit_tree() and reduce_heads()

Miklos Vajna git 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3commit_tree(): add a new author parameterbuiltin-commit-tree.c builtin-merge.c builtin.h+10 -60 replies
2/3builtin-commit: use commit_tree()builtin-commit.c+14 -490 replies
3/3t7603: add new testcases to ensure builtin-commit uses reduce_heads()t/t7603-merge-reduce-heads.sh+53 -00 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] make builtin-commit use commit_tree() and reduce_heads()

Hi,

Quoted 1 line · Russell King

Is this intentional, or is it a bug?

It is because builtin-commit does not use reduce_heads(), but builtin-merge does.

Here are 3 patches to make builtin-commit use commit_tree() and reduce_heads() as well.

The first one just improves the commit_tree() interface.

The second one is a cleanup, but it also adds reduce_heads() usage, to fix the issue, pointed out by Russell King.

The third one adds new testcases, based on the ones provided by him.

Miklos Vajna (3):
commit_tree(): add a new author parameter
builtin-commit: use commit_tree()
t7603: add new testcases to ensure builtin-commit uses reduce_heads()

 builtin-commit-tree.c         |    9 ++++--
 builtin-commit.c              |   63 +++++++++-------------------------------
 builtin-merge.c               |    4 +-
 builtin.h                     |    3 +-
 t/t7603-merge-reduce-heads.sh |   53 ++++++++++++++++++++++++++++++++++
 5 files changed, 77 insertions(+), 55 deletions(-)