git-gui: Refactor the add to commit state filters.
authorShawn O. Pearce <spearce@spearce.org>
Sun, 21 Jan 2007 04:33:34 +0000 (23:33 -0500)
committerShawn O. Pearce <spearce@spearce.org>
Sun, 21 Jan 2007 07:54:24 +0000 (02:54 -0500)
commitb4b491e388627b75ed3aee5dc60e4199eae7b362
treeee25e66c96e35d577a99417302bf188b17de6572
parent7d40edfa06adf7f31f787bb6379c1eb454242c19
git-gui: Refactor the add to commit state filters.

The list of states which are valid for update-index were a little
too verbose and fed a few too many cases to the program.  We can
do better with less lines of code by using more pattern matching,
and since we already were globbing here there's little change in
runtime cost.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui.sh