git-gui: fix exception when trying to stage with empty file list
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Tue, 9 Jan 2018 14:33:01 +0000 (15:33 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 9 Jan 2018 19:02:40 +0000 (11:02 -0800)
commit2cd9179c14dc830247a84a602caac42afa0fcf8f
treec0f3cbb3805d8a732b241ce0b51b34573402929b
parent2365e5b17411d50129462c2a1919bedc4fa64c68
git-gui: fix exception when trying to stage with empty file list

If there is nothing to stage, there is nothing to stage. Let's not try
to, even if the file list contains nothing at all.

This fixes https://github.com/git-for-windows/git/issues/1075

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-gui.sh