commit: abort commit if interactive add failed
commit4f6a32f8af9cceaf0c8ccf6d00d2f100dab5a6db
authorJeff King <peff@peff.net>
Fri, 3 Apr 2009 19:28:56 +0000 (3 15:28 -0400)
committerJunio C Hamano <gitster@pobox.com>
Sun, 5 Apr 2009 07:37:32 +0000 (5 00:37 -0700)
tree5becc1ddbe0aa3b92630cc2a26cf043173db46b9
parente1dc49bcdefd362e129c9ee3a85527b518f9b49d
commit: abort commit if interactive add failed

Previously we ignored the result of calling add_interactive,
which meant that if an error occurred we simply committed
whatever happened to be in the index.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-commit.c