commit --interactive: properly update the index before commiting
authorGerrit Pape <pape@smarden.org>
Tue, 27 May 2008 08:59:16 +0000 (08:59 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 28 May 2008 05:32:47 +0000 (22:32 -0700)
commitd5350fd2b3a4721885bf1b3353478970caef268c
tree5f81b0fb9baebbe54d86f301fab3cd61ce6a3e6c
parent1f684dc01c6a45341e8e47d8393f0ef66fdfc398
commit --interactive: properly update the index before commiting

When adding files through git commit --interactive, and 'quit'
afterwards, the message in the editor of the commit message indicates
that many (maybe all) files are deleted from the tree.  Dismissing that
and running git commit afterwards does the right thing.  This commit
fixes git commit --interactive to properly update the index before
commiting.

Reported by Jiří Paleček through
 http://bugs.debian.org/480429

Signed-off-by: Gerrit Pape <pape@smarden.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-commit.c