git-gui: Refactor the add to commit state filters.