git-gui: Set a proper title on our revert confirm dialog box.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Shawn O. Pearce committed
Nov 25, 2006 at 12:40 UTC
9208487b34706887fcc10ce6423099134f301f5e
1 file changed
+7
-2
git-gui
+7
-2
@@ -2387,6 +2387,7 @@ proc do_include_all {} {
2387
}
2388
2389
proc revert_helper {txt paths} {
2390
+ global gitdir appname
2391
global file_states current_diff
2392
2393
if {![lock_index begin-update]} return
@@ -2419,13 +2420,17 @@ proc revert_helper {txt paths} {
2420
set s "these $n files"
2421
}
2422
2423
+ set reponame [lindex [file split \
2424
+ [file normalize [file dirname $gitdir]]] \
2425
+ end]
2426
+
2427
set reply [tk_dialog \
2428
.confirm_revert \
2424
- "title" \
2429
+ "$appname ($reponame)" \
2430
"Revert unincluded changes in $s?
2431
2432
Any unincluded changes will be permanently lost by the revert." \
2428
- questhead \
2433
+ question \
2434
1 \
2435
{Do Nothing} \
2436
{Revert Changes} \