diff options
author | Phillip Wood <phillip.wood@dunelm.org.uk> | 2022-02-16 10:15:08 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-02-16 10:58:15 -0800 |
commit | 4a37b80e88f8f26a2f56d77c5ad6caa41d572ea8 (patch) | |
tree | bef62ae6302314d5727077ea89d64e5b1f8578c7 /t/t4013/diff.log_-m_-p_--first-parent_master | |
parent | xdiff: handle allocation failure in patience diff (diff) | |
download | tgif-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.log_-m_-p_--first-parent_master')
0 files changed, 0 insertions, 0 deletions