Skip to content

Use ALLOC_GROW() instead of inline code

Dmitry S. Dolzhenko git 4 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest14 patches 2 repliesIn review
  2. v311 patches 2 repliesSuperseded
  3. v211 patches 12 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v11 patch3 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14builtin/pack-objects.c: use ALLOC_GROW() in check_pbase_path()builtin/pack-objects.c+3 -60 replies
2/14bundle.c: use ALLOC_GROW() in add_to_ref_list()bundle.c+1 -50 replies
3/14cache-tree.c: use ALLOC_GROW() in find_subtree()cache-tree.c+1 -50 replies
4/14commit.c: use ALLOC_GROW() in register_commit_graft()commit.c+2 -60 replies
5/14diff.c: use ALLOC_GROW()diff.c+2 -101 reply
6/14diffcore-rename.c: use ALLOC_GROW()diffcore-rename.c+2 -100 replies
7/14patch-ids.c: use ALLOC_GROW() in add_commit()patch-ids.c+1 -40 replies
8/14replace_object.c: use ALLOC_GROW() in register_replace_object()replace_object.c+2 -60 replies
9/14reflog-walk.c: use ALLOC_GROW()reflog-walk.c+2 -100 replies
10/14dir.c: use ALLOC_GROW() in create_simplify()dir.c+1 -40 replies
11/14attr.c: use ALLOC_GROW() in handle_attr_line()attr.c+1 -60 replies
12/14builtin/mktree.c: use ALLOC_GROW() in append_to_tree()builtin/mktree.c+1 -40 replies
13/14read-cache.c: use ALLOC_GROW() in add_index_entry()read-cache.c+1 -50 replies
14/14sha1_file.c: use ALLOC_GROW() in pretend_sha1_file()sha1_file.c+1 -60 replies

Reviews trailers per patch

None of the 14 patches has a Reviewed-by or Acked-by.

PatchHe Sun
1/14
2/14
3/14
4/14
5/14
6/14
7/14
8/14
9/14
10/14
11/14
12/14Helped-by
13/14
14/14Helped-by

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 00/14] Use ALLOC_GROW() instead of inline code

This version differs from previous [1] the following changes:
- added three new commits with similar changes in "builtin/mktree.c",

    "cache-tree.c" and "sha1_file.c".

- updated commit messages: "use ALLOC_GROW() in function_name()" instead of "change function_name() to use ALLOC_GROW()"
- updated [PATCH v2 01/11] [2] to keep code lines within 80 columns in "builtin/pack-objects.c"

Duy Nguyen, Michael Haggerty, Junio C Hamano, Eric Sunshine, and He Sun, thanks you very much for your remarks and advices

[1] http://thread.gmane.org/gmane.comp.version-control.git/242919
[2] http://thread.gmane.org/gmane.comp.version-control.git/242920

Dmitry S. Dolzhenko (14):
builtin/pack-objects.c: use ALLOC_GROW() in check_pbase_path() bundle.c: use ALLOC_GROW() in add_to_ref_list() cache-tree.c: use ALLOC_GROW() in find_subtree() commit.c: use ALLOC_GROW() in register_commit_graft() diff.c: use ALLOC_GROW()
diffcore-rename.c: use ALLOC_GROW()
patch-ids.c: use ALLOC_GROW() in add_commit() replace_object.c: use ALLOC_GROW() in register_replace_object() reflog-walk.c: use ALLOC_GROW()
dir.c: use ALLOC_GROW() in create_simplify()
attr.c: use ALLOC_GROW() in handle_attr_line() builtin/mktree.c: use ALLOC_GROW() in append_to_tree() read-cache.c: use ALLOC_GROW() in add_index_entry() sha1_file.c: use ALLOC_GROW() in pretend_sha1_file()

 attr.c                 |  7 +------
 builtin/mktree.c       |  5 +----
 builtin/pack-objects.c |  9 +++------
 bundle.c               |  6 +-----
 cache-tree.c           |  6 +-----
 commit.c               |  8 ++------
 diff.c                 | 12 ++----------
 diffcore-rename.c      | 12 ++----------
 dir.c                  |  5 +----
 patch-ids.c            |  5 +----
 read-cache.c           |  6 +-----
 reflog-walk.c          | 12 ++----------
 replace_object.c       |  8 ++------
 sha1_file.c            |  7 +------
 14 files changed, 21 insertions(+), 87 deletions(-)
Signature · 1 line
1.8.3.2