author | Shawn O. Pearce <spearce@spearce.org> | |
Sun, 21 Jan 2007 04:10:30 +0000 (23:10 -0500) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Sun, 21 Jan 2007 07:54:23 +0000 (02:54 -0500) | ||
commit | de5f6d5d178a1c8113aaca34c8f6b3842732a741 | |
tree | 010071e9d36c1319d4e74dc73c10704f674adb9c | tree | snapshot |
parent | 93e912c5e62220bd3cc2d00bfe357ed8fd44d413 | commit | diff |
git-gui: Add or unstage based on the specific icon used.
Rather than relying on the file state and just inverting it, we should
look at which file icon the user clicked on. If they clicked on the
one in the "Changes To Be Committed" list then they want to unstage
the file. If they clicked on the icon in the "Changed But Not Updated"
list then they want to add the file to the commit. This should be much
more reliable about capturing the user's intent then looking at the file
state.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Rather than relying on the file state and just inverting it, we should
look at which file icon the user clicked on. If they clicked on the
one in the "Changes To Be Committed" list then they want to unstage
the file. If they clicked on the icon in the "Changed But Not Updated"
list then they want to add the file to the commit. This should be much
more reliable about capturing the user's intent then looking at the file
state.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui.sh | diff | blob | history |