summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 74d18d2)
raw | patch | inline | side by side (parent: 74d18d2)
author | Shawn O. Pearce <spearce@spearce.org> | |
Sun, 19 Nov 2006 05:46:08 +0000 (00:46 -0500) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Sun, 19 Nov 2006 05:46:08 +0000 (00:46 -0500) |
There was a bug with the way we handled deleted file status. A file
really shouldn't be in D_ state when it has been deleted, instead it
is really DD. Therefore we should have toggled _D to DD, not D_,
thereby letting us toggle back to _D.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
really shouldn't be in D_ state when it has been deleted, instead it
is really DD. Therefore we should have toggled _D to DD, not D_,
thereby letting us toggle back to _D.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui | patch | blob | history |
index 7126f8d897dc7780c692ea25526a827909775421..7ea31e50892fc17e2fe7c737f1570799aea7df29 100755 (executable)
--- a/git-gui
+++ b/git-gui
set s $file_states($path)
set m [lindex $s 0]
switch -glob -- $m {
+ DD -
+ AO {set m __}
A? -
M? -
D? {set m _[string index $m 1]}
switch -glob -- [lindex $file_states($path) 0] {
AD -
MD -
- _D {set new D_}
+ _D {set new DD}
_M -
MM -
A_ -
AO -
M_ -
+ DD -
D_ {
update_indexinfo \
"Removing [short_path $path] from commit" \