summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 21e409a)
raw | patch | inline | side by side (parent: 21e409a)
author | Shawn O. Pearce <spearce@spearce.org> | |
Sun, 21 Jan 2007 03:57:19 +0000 (22:57 -0500) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Sun, 21 Jan 2007 07:54:22 +0000 (02:54 -0500) |
Apparently my earlier suspicion that the file state DD was a bug was
correct. A file which has been deleted from the working directory and
from the index will always get the state of D_ during a rescan. Thus
the only valid state for this to have is D_. We should always use only
D_ internally during our state changes.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
correct. A file which has been deleted from the working directory and
from the index will always get the state of D_ during a rescan. Thus
the only valid state for this to have is D_. We should always use only
D_ internally during our state changes.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui.sh | patch | blob | history |
diff --git a/git-gui.sh b/git-gui.sh
index 9fa467ab9f25c2283a56810b80b40267ed0648e7..9a2b70b47558046bcdda3702c83a347e8e08fae5 100755 (executable)
--- a/git-gui.sh
+++ b/git-gui.sh
__ -
A_ -
M_ -
- DD {
+ D_ {
unset file_states($path)
catch {unset selected_paths($path)}
}
AD -
MD -
UD -
- _D {set new DD}
+ _D {set new D_}
_M -
MM -
{AD "Added (but gone)"}
{_D "Missing"}
- {DD "Removed by commit"}
{D_ "Removed by commit"}
{DO "Removed (still exists)"}
{DM "Removed (but modified)"}
switch -glob -- [lindex $file_states($path) 0] {
A_ -
M_ -
- DD -
+ D_ -
DO -
DM {
update_indexinfo \