Skip to content

Miscellanous cleanups around start_command/run_command callers

Johannes Sixt 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/3Simplify some instances of run_command() by using run_command_v_opt().builtin-receive-pack.c ll-merge.c merge-index.c+18 -450 replies
2/3diff.c: plug a memory leak in an error pathdiff.c+1 -00 replies
3/3Simplify some 'fprintf(stderr); return -1;' by using 'return error()'builtin-help.c+6 -100 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] Miscellanous cleanups around start_command/run_command callers

This is just to flush a queue of unrelated changes before they pile up. I found these while I reviewed start_command and run_command call sites.

Johannes Sixt (3):
Simplify some instances of run_command() by using

    run_command_v_opt().

diff.c: plug a memory leak in an error path
Simplify some 'fprintf(stderr); return -1;' by using 'return error()'

 builtin-help.c         |   16 ++++++----------
 builtin-receive-pack.c |   10 +++-------
 diff.c                 |    1 +
 ll-merge.c             |   11 ++---------
 merge-index.c          |   42 +++++++++++++-----------------------------
 5 files changed, 25 insertions(+), 55 deletions(-)