mbox series

[0/3] COPY_ARRAY, MOVE_ARRAY, DUP_ARRAY

Message ID efe7ec20-201e-a1c1-8e16-2f714a0aee8e@web.de (mailing list archive)
Headers show
Series COPY_ARRAY, MOVE_ARRAY, DUP_ARRAY | expand

Message

René Scharfe Dec. 30, 2022, 9:51 p.m. UTC
Tighten the type check of COPY_ARRAY and MOVE_ARRAY.  Then add DUP_ARRAY
for making a shallow copy without repeating destination and element
count, which inherits the stricter check.

  do full type check in COPY_ARRAY and MOVE_ARRAY
  add DUP_ARRAY
  use DUP_ARRAY

 attr.c                         | 3 +--
 builtin/am.c                   | 3 +--
 commit-graph.c                 | 3 +--
 commit-reach.c                 | 3 +--
 compat/mingw.c                 | 3 +--
 contrib/coccinelle/array.cocci | 7 +++++++
 git-compat-util.h              | 7 +++++++
 parse-options.c                | 3 +--
 pathspec.c                     | 6 ++----
 9 files changed, 22 insertions(+), 16 deletions(-)

--
2.39.0