Fixed issue #1667: Ability to ignore a folder in commit dialog

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>
Unify indentation of switch-case block

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>