summaryrefslogtreecommitdiff
path: root/git-gui
diff options
context:
space:
mode:
authorLibravatar Shawn O. Pearce <spearce@spearce.org>2006-11-25 12:40:29 -0500
committerLibravatar Shawn O. Pearce <spearce@spearce.org>2006-11-25 22:52:03 -0500
commit9208487b34706887fcc10ce6423099134f301f5e (patch)
tree8cb1ecb168595047d4669fc04919cf339f4cf02d /git-gui
parentgit-gui: Started implementation of switch_branch. (diff)
downloadtgif-9208487b34706887fcc10ce6423099134f301f5e.tar.xz
git-gui: Set a proper title on our revert confirm dialog box.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'git-gui')
-rwxr-xr-xgit-gui9
1 files changed, 7 insertions, 2 deletions
diff --git a/git-gui b/git-gui
index 3845cf7168..09fc40aaf8 100755
--- a/git-gui
+++ b/git-gui
@@ -2387,6 +2387,7 @@ proc do_include_all {} {
}
proc revert_helper {txt paths} {
+ global gitdir appname
global file_states current_diff
if {![lock_index begin-update]} return
@@ -2419,13 +2420,17 @@ proc revert_helper {txt paths} {
set s "these $n files"
}
+ set reponame [lindex [file split \
+ [file normalize [file dirname $gitdir]]] \
+ end]
+
set reply [tk_dialog \
.confirm_revert \
- "title" \
+ "$appname ($reponame)" \
"Revert unincluded changes in $s?
Any unincluded changes will be permanently lost by the revert." \
- questhead \
+ question \
1 \
{Do Nothing} \
{Revert Changes} \