summaryrefslogtreecommitdiff
path: root/pack-check.c
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2009-05-27 11:25:19 +0200
committerJunio C Hamano <gitster@pobox.com>2009-06-13 17:30:38 -0700
commit0cd29a0371838228e2c942058e8829f5d0d4a077 (patch)
treea55be524d407e49df02305428ac83b6f815a8ed3 /pack-check.c
parentc574e683b587ee3c302317e4fa9c83cd4605cd82 (diff)
downloadgit-0cd29a0371838228e2c942058e8829f5d0d4a077.tar.gz
git-am: refactor 'cleaning up and aborting'
Introduce a clean_abort function that echoes an optional error message to standard error, removes the dotest directory and exits with status 1. Use it when patch format detection or patch splitting fails early. Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pack-check.c')
0 files changed, 0 insertions, 0 deletions