summaryrefslogtreecommitdiff
path: root/test-genrandom.c
diff options
context:
space:
mode:
authorDavid Aguilar <davvid@gmail.com>2012-07-26 12:36:19 -0700
committerJunio C Hamano <gitster@pobox.com>2012-07-26 13:06:00 -0700
commitceb1497a74e75a0c9bd53716b787d33ad6e2397f (patch)
tree479ceb0187a33c95ba67257803d09a47d0054f62 /test-genrandom.c
parenta4cd5be30cdd19c43908dc55d8dd39a0fe79075b (diff)
downloadgit-ceb1497a74e75a0c9bd53716b787d33ad6e2397f.tar.gz
difftool: Handle compare() returning -1
Keep the temporary directory around when compare() cannot read its input files, which is indicated by -1. Defer tempdir creation to allow an early exit in setup_dir_diff(). Wrap the rest of the entry points in an exit_cleanup() function to handle removing temporary files and error reporting. Print the temporary files' location so that the user can recover them. Signed-off-by: David Aguilar <davvid@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'test-genrandom.c')
0 files changed, 0 insertions, 0 deletions