git-am: refactor 'cleaning up and aborting'
commit0cd29a0371838228e2c942058e8829f5d0d4a077
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 27 May 2009 09:25:19 +0000 (27 11:25 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 14 Jun 2009 00:30:38 +0000 (13 17:30 -0700)
treea55be524d407e49df02305428ac83b6f815a8ed3
parentc574e683b587ee3c302317e4fa9c83cd4605cd82
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>
git-am.sh