Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
}
proc revert_helper {txt paths} {
+ global gitdir appname
global file_states current_diff
if {![lock_index begin-update]} return
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} \