error_popup "No working directory [file dirname $gitdir]:\n\n$err"
exit 1
}
+set reponame [lindex [file split \
+ [file normalize [file dirname $gitdir]]] \
+ end]
set single_commit 0
if {$appname eq {git-citool}} {
}
proc revert_helper {txt paths} {
- global gitdir appname
+ global gitdir appname reponame
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 \
"$appname ($reponame)" \
}
proc do_options {} {
- global appname gitdir font_descs
+ global appname gitdir reponame font_descs
global repo_config global_config
global repo_config_new global_config_new
foreach name [array names global_config] {
set global_config_new($name) $global_config($name)
}
- set reponame [lindex [file split \
- [file normalize [file dirname $gitdir]]] \
- end]
set w .options_editor
toplevel $w
}
proc do_windows_shortcut {} {
- global gitdir appname argv0
-
- set reponame [lindex [file split \
- [file normalize [file dirname $gitdir]]] \
- end]
+ global gitdir appname reponame argv0
if {[catch {
set desktop [exec cygpath \
}
proc do_macosx_app {} {
- global gitdir appname argv0 env
-
- set reponame [lindex [file split \
- [file normalize [file dirname $gitdir]]] \
- end]
+ global gitdir appname reponame argv0 env
set fn [tk_getSaveFile \
-parent . \