Исправрелдение Git::Commit (индексация всех файлов в проекте)

This commit is contained in:
svkalinin 2022-11-11 13:04:22 +03:00
parent d6fc490a05
commit fdba263d3e
2 changed files with 11 additions and 7 deletions

View File

@ -159,16 +159,20 @@ namespace eval Git {
proc Commit {w} {
global cfgVariables activeProject
set txt [string trim [$w get 0.0 end]]
puts $txt
set txt $w.body.tCommit
set listBox $w.body.lCommit
set description [string trim [$txt get 0.0 end]]
puts $description
set cmd exec
append cmd " $cfgVariables(gitCommand)"
append cmd " commit"
append cmd " -m"
append cmd " \"$txt\""
append cmd " \"$description\""
append cmd " --"
append cmd " $activeProject"
if {$txt eq ""} {
foreach item [$listBox get 0 [$listBox size]] {
append cmd " [file join $activeProject $item]"
}
if {$description eq ""} {
set answer [tk_messageBox -message [::msgcat::mc "Empty commit description"] \
-icon info -type ok \
-detail [::msgcat::mc "You must enter a commit description"]]
@ -552,7 +556,7 @@ namespace eval Git {
ttk::button $fr.body.bCommit -image done_20x20 -compound left \
-text "[::msgcat::mc "Commit changes"]" \
-command "Git::Commit $fr.body.tCommit; Git::DialogUpdate $fr"
-command "Git::Commit $fr; Git::DialogUpdate $fr"
ttk::button $fr.body.bPush -image doneall_20x20 -compound left \
-text "[::msgcat::mc "Push changes"]" \
-command "Git::PushPrepare; Git::DialogUpdate $fr"

View File

@ -10,7 +10,7 @@ exec wish "$0" -- "$@"
######################################################
# Version: 2.0.0
# Release: alpha
# Build: 11112022122612
# Build: 11112022130209
######################################################
# определим текущую версию, релиз и т.д.