Skip to content

Modernize mktree somewhat

Junio C Hamano git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6build-in git-mktreeMakefile builtin-mktree.c builtin.h +1 more+10 -120 replies
2/6mktree: use parse-optionsbuiltin-mktree.c+10 -100 replies
3/6builtin-mktree.c: use a helper function to handle one line of inputbuiltin-mktree.c+42 -400 replies
4/6mktree: do not barf on a submodule commitbuiltin-mktree.c+8 -10 replies
5/6t1010: add mktree testt/t1010-mktree.sh+61 -00 replies
6/6mktree --missing: allow missing objectsbuiltin-mktree.c t/t1010-mktree.sh+18 -32 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/6] Modernize mktree somewhat

This series updates mktree to make it a built-in, teaches it to use parse-options, and then adds tests. These are all necessary steps to modernize it.

The last one adds --missing option to make things consistent with other parts of the system. The combination of update-index and write-tree has provisions to record a tree of objects that we may not have, but so far it was not possible with mktree.

Junio C Hamano (6):
build-in git-mktree
mktree: use parse-options
builtin-mktree.c: use a helper function to handle one line of input
mktree: do not barf on a submodule commit
t1010: add mktree test
mktree --missing: allow missing objects

 Makefile          |    2 +-
 builtin-mktree.c  |  141 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 builtin.h         |    1 +
 git.c             |    1 +
 mktree.c          |  131 -------------------------------------------------
 t/t1010-mktree.sh |   71 +++++++++++++++++++++++++++
 6 files changed, 215 insertions(+), 132 deletions(-)
 create mode 100644 builtin-mktree.c
 delete mode 100644 mktree.c
 create mode 100755 t/t1010-mktree.sh