git-gui: Correct wording of the revert confirmation dialog.
[gitweb.git] / git-gui
diff --git a/git-gui b/git-gui
index 0c88e4c7c32edffe0f4bef5e7216d5796b0b9dc9..ade64dcd1243123104164c42f2bd26555993c2b4 100755 (executable)
--- a/git-gui
+++ b/git-gui
@@ -1429,6 +1429,7 @@ proc write_update_indexinfo {fd pathList totalCnt batch msg after} {
                switch -glob -- [lindex $s 0] {
                A? {set new _O}
                M? {set new _M}
+               D_ {set new _D}
                D? {set new _?}
                ?? {continue}
                }
@@ -1945,6 +1946,7 @@ foreach i {
 
                {_D i question "Missing"}
                {DD i removed  "Removed by commit"}
+               {D_ i removed  "Removed by commit"}
                {DO i removed  "Removed (still exists)"}
                {DM i removed  "Removed (but modified)"}
 
@@ -2217,13 +2219,9 @@ proc do_gitk {revs} {
        }
 }
 
-proc do_repack {} {
-       set w [new_console {repack} \
-               {Repacking the object database}]
-       set cmd [list git repack]
-       lappend cmd -a
-       lappend cmd -d
-       console_exec $w $cmd
+proc do_gc {} {
+       set w [new_console {gc} {Compressing the object database}]
+       console_exec $w {git gc}
 }
 
 proc do_fsck_objects {} {
@@ -2431,9 +2429,9 @@ proc revert_helper {txt paths} {
        set reply [tk_dialog \
                .confirm_revert \
                "$appname ($reponame)" \
-               "Revert unincluded changes in $s?
+               "Revert changes in $s?
 
-Any unincluded changes will be permanently lost by the revert." \
+Any unadded changes will be permanently lost by the revert." \
                question \
                1 \
                {Do Nothing} \
@@ -3033,8 +3031,8 @@ if {![is_MacOSX]} {
 .mbar.repository add separator
 
 if {!$single_commit} {
-       .mbar.repository add command -label {Repack Database} \
-               -command do_repack \
+       .mbar.repository add command -label {Compress Database} \
+               -command do_gc \
                -font font_ui
 
        .mbar.repository add command -label {Verify Database} \