builtin-am: refuse to apply patches if index is dirty
commit32a5fcbfe9e9436224278ec7eb137b0f2905928d
authorPaul Tan <pyokagan@gmail.com>
Tue, 4 Aug 2015 13:51:31 +0000 (4 21:51 +0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 5 Aug 2015 05:02:11 +0000 (4 22:02 -0700)
tree949884ae19ed6f15720f946fafdd70f306d478ad
parentc9e8d960b612d5962cd1e952916c2ab6f483e620
builtin-am: refuse to apply patches if index is dirty

Since d1c5f2a (Add git-am, applymbox replacement., 2005-10-07), git-am
will refuse to apply patches if the index is dirty. Re-implement this
behavior in builtin/am.c.

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