Skip to content

More preparatory work for multiparent tree-walker

Kirill Smelkov git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11tree-diff: show_tree() is not neededtree-diff.c+3 -320 replies
2/11tree-diff: consolidate code for emitting diffs and recursion in one placetree-diff.c+86 -312 replies
3/11tree-diff: don't assume compare_tree_entry() returns -1,0,1tree-diff.c+14 -80 replies
4/11tree-diff: move all action-taking code out of compare_tree_entry()tree-diff.c+12 -160 replies
5/11tree-diff: rename compare_tree_entry -> tree_entry_pathcmptree-diff.c+9 -60 replies
6/11tree-diff: show_path prototype is not needed anymoretree-diff.c+0 -30 replies
7/11tree-diff: simplify tree_entry_pathcmptree-diff.c+6 -110 replies
8/11tree-diff: remove special-case diff-emitting code for empty-tree casestree-diff.c+9 -120 replies
9/11tree-diff: rework diff_tree interface to be sha1 baseddiff.h tree-diff.c+30 -340 replies
10/11tree-diff: no need to call "full" diff_tree_sha1 from show_path()tree-diff.c+2 -20 replies
11/11tree-diff: reuse base str(buf) memory on sub-tree recursiondiff.h tree-diff.c+19 -191 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/11] More preparatory work for multiparent tree-walker

Here I'm preparing tree-diff.c to be ready for the new tree-walker, so that the final change is tractable and looks good and non noisy. Some small speedups are gained along the way. The final bits are almost ready, but I don't want to release them in a hurry.

Please apply and thanks,
Kirill

Kirill Smelkov (11):
tree-diff: show_tree() is not needed
tree-diff: consolidate code for emitting diffs and recursion in one place
tree-diff: don't assume compare_tree_entry() returns -1,0,1
tree-diff: move all action-taking code out of compare_tree_entry()
tree-diff: rename compare_tree_entry -> tree_entry_pathcmp
tree-diff: show_path prototype is not needed anymore
tree-diff: simplify tree_entry_pathcmp
tree-diff: remove special-case diff-emitting code for empty-tree cases
tree-diff: rework diff_tree interface to be sha1 based
tree-diff: no need to call "full" diff_tree_sha1 from show_path()
tree-diff: reuse base str(buf) memory on sub-tree recursion

 diff.h      |   4 +-
 tree-diff.c | 270 ++++++++++++++++++++++++++++++++----------------------------
 2 files changed, 145 insertions(+), 129 deletions(-)
Signature · 1 line
1.9.rc1.181.g641f458