author | Shawn O. Pearce <spearce@spearce.org> | |
Sun, 21 Jan 2007 04:33:34 +0000 (23:33 -0500) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Sun, 21 Jan 2007 07:54:24 +0000 (02:54 -0500) | ||
commit | b4b491e388627b75ed3aee5dc60e4199eae7b362 | |
tree | ee25e66c96e35d577a99417302bf188b17de6572 | tree | snapshot |
parent | 7d40edfa06adf7f31f787bb6379c1eb454242c19 | commit | diff |
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>
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 | diff | blob | history |