summaryrefslogtreecommitdiff
path: root/t/t4013/diff.diff_initial..side
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2026-09-01 02:36:45 -0400
committerJunio C Hamano <gitster@pobox.com>2026-09-01 11:04:18 -0700
commit0e96176af4261824b363df146b1f673b14a1fed5 (patch)
treefaf55e6c6c6d29c0529f615176c1b390e079e2bc /t/t4013/diff.diff_initial..side
parent66f4856110a7577c12f97ae905c95a6f38adba9d (diff)
revision: simplify mark_argv_for_free() callers
You do not want to mark an argv element for freeing unless the caller has given us the free_removed_argv_elements flag. Originally we just called free() in this case, so each caller checked the flag itself. Now that we mark them via a helper function, we can push the check down into the helper. This saves a little bit of duplicated code, but also hopefully makes the result conceptually simpler. Every caller but one was already checking this flag. The exception is setup_revisions_from_strvec(), but it always sets the flag explicitly (since its whole purpose is managing argv memory). So even though it was not checking the flag, doing so is OK (it will always be set). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.diff_initial..side')
0 files changed, 0 insertions, 0 deletions