builtin-am: implement committing applied patch
commitc9e8d960b612d5962cd1e952916c2ab6f483e620
authorPaul Tan <pyokagan@gmail.com>
Tue, 4 Aug 2015 13:51:30 +0000 (4 21:51 +0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 5 Aug 2015 05:02:11 +0000 (4 22:02 -0700)
tree9892ab84e5c699d607ddb7613971dd6cfeefc425
parent38a824fe050c4da3f2e0979a94062119080a77a0
builtin-am: implement committing applied patch

Implement do_commit(), which commits the index which contains the
results of applying the patch, along with the extracted commit message
and authorship information.

Since 29b6754 (am: remove rebase-apply directory before gc, 2010-02-22),
git gc --auto is also invoked to pack the loose objects that are created
from making the commits.

Signed-off-by: Paul Tan <pyokagan@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/am.c