t4150: am --resolved fails if index has no changes
authorPaul Tan <redacted>
Sun, 19 Jul 2015 15:49:11 +0000 (23:49 +0800)
committerJunio C Hamano <redacted>
Mon, 20 Jul 2015 17:51:47 +0000 (10:51 -0700)
commit60ff7f9f5c818d1e59daa47467c61ad53be2c5ec
tree45bc69febc1a2bed1f578a094530b8139e8ccc27
parentb4967ab49003e78bc4555de686a20bc82d56614f
t4150: am --resolved fails if index has no changes

Since 6d28644 (git-am: do not allow empty commits by mistake.,
2006-02-23), git-am --resolved will check to see if the index has any
changes to prevent the user from creating an empty commit by mistake.

Add a test for this.

Reviewed-by: Stefan Beller <redacted>
Reviewed-by: Johannes Schindelin <redacted>
Signed-off-by: Paul Tan <redacted>
Signed-off-by: Junio C Hamano <redacted>
t/t4150-am.sh
git clone https://git.99rst.org/PROJECT