summaryrefslogtreecommitdiff
path: root/t/t4013/diff.whatchanged_--root_--patch-with-stat_master
diff options
context:
space:
mode:
authorLibravatar Phillip Wood <phillip.wood@dunelm.org.uk>2022-02-16 10:15:08 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2022-02-16 10:58:15 -0800
commit4a37b80e88f8f26a2f56d77c5ad6caa41d572ea8 (patch)
treebef62ae6302314d5727077ea89d64e5b1f8578c7 /t/t4013/diff.whatchanged_--root_--patch-with-stat_master
parentxdiff: handle allocation failure in patience diff (diff)
downloadtgif-4a37b80e88f8f26a2f56d77c5ad6caa41d572ea8.tar.xz
xdiff: refactor a function
Use the standard "goto out" pattern rather than repeating very similar code after checking for each error. This will simplify the next commit that starts handling allocation failures that are currently ignored. On error xdl_do_diff() frees the environment so we need to take care to avoid a double free in that case. xdl_build_script() does not assign a result unless it is successful so there is no possibility of a double free if it fails. Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.whatchanged_--root_--patch-with-stat_master')
0 files changed, 0 insertions, 0 deletions