Use a temporary index for git commit --interactive
commit1020d08786c1413d488845f9175d01c0ea073a6c
authorConrad Irwin <conrad.irwin@gmail.com>
Sat, 7 May 2011 05:59:59 +0000 (6 22:59 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sun, 8 May 2011 19:28:30 +0000 (8 12:28 -0700)
tree55723f1968df1c829cece4e5426314f85e5210db
parent6086ff65dfcf48237bdac6c64a85bef5d34d5b4e
Use a temporary index for git commit --interactive

Change the behaviour of git commit --interactive so that when you abort
the commit (by leaving the commit message empty) the index remains
unchanged.

Hitherto an aborted commit --interactive has added the selected hunks to
the index regardless of whether the commit succeeded or not.

Signed-off-by: Conrad Irwin <conrad.irwin@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-commit.txt
builtin/commit.c