Фиксы диалога работы с Git (работа с выделенными файлами в списках)
This commit is contained in:
parent
3b8dc3d6f5
commit
d70459970d
|
@ -321,18 +321,21 @@ namespace eval Git {
|
|||
proc CommitAdd {w} {
|
||||
global activeProject cfgVariables
|
||||
# puts $values
|
||||
set selectedItems [$w.body.lBox curselection]
|
||||
set cmd exec
|
||||
lappend cmd $cfgVariables(gitCommand)
|
||||
lappend cmd "add"
|
||||
foreach itemNumber [$w.body.lBox curselection] {
|
||||
foreach itemNumber [lsort -integer -increasing $selectedItems] {
|
||||
set fileName [$w.body.lBox get $itemNumber]
|
||||
lappend cmd [file join $activeProject $fileName]
|
||||
$w.body.lCommit insert end $fileName
|
||||
}
|
||||
foreach itemNumber [lsort -integer -decreasing $selectedItems] {
|
||||
$w.body.lBox delete $itemNumber
|
||||
}
|
||||
catch $cmd pipe
|
||||
puts $cmd
|
||||
$w.body.lCommit insert end $fileName
|
||||
|
||||
$w.body.t delete 1.0 end
|
||||
}
|
||||
proc Key {k fr} {
|
||||
# puts [Editor::Key $k]
|
||||
|
|
|
@ -10,7 +10,7 @@ exec wish "$0" -- "$@"
|
|||
######################################################
|
||||
# Version: 2.0.0
|
||||
# Release: alpha
|
||||
# Build: 16112022152218
|
||||
# Build: 16112022162516
|
||||
######################################################
|
||||
|
||||
# определим текущую версию, релиз и т.д.
|
||||
|
|
Loading…
Reference in New Issue
Block a user