Исправрелдение Git::Commit (индексация всех файлов в проекте)
This commit is contained in:
parent
d6fc490a05
commit
fdba263d3e
16
lib/git.tcl
16
lib/git.tcl
|
@ -159,16 +159,20 @@ namespace eval Git {
|
||||||
|
|
||||||
proc Commit {w} {
|
proc Commit {w} {
|
||||||
global cfgVariables activeProject
|
global cfgVariables activeProject
|
||||||
set txt [string trim [$w get 0.0 end]]
|
set txt $w.body.tCommit
|
||||||
puts $txt
|
set listBox $w.body.lCommit
|
||||||
|
set description [string trim [$txt get 0.0 end]]
|
||||||
|
puts $description
|
||||||
set cmd exec
|
set cmd exec
|
||||||
append cmd " $cfgVariables(gitCommand)"
|
append cmd " $cfgVariables(gitCommand)"
|
||||||
append cmd " commit"
|
append cmd " commit"
|
||||||
append cmd " -m"
|
append cmd " -m"
|
||||||
append cmd " \"$txt\""
|
append cmd " \"$description\""
|
||||||
append cmd " --"
|
append cmd " --"
|
||||||
append cmd " $activeProject"
|
foreach item [$listBox get 0 [$listBox size]] {
|
||||||
if {$txt eq ""} {
|
append cmd " [file join $activeProject $item]"
|
||||||
|
}
|
||||||
|
if {$description eq ""} {
|
||||||
set answer [tk_messageBox -message [::msgcat::mc "Empty commit description"] \
|
set answer [tk_messageBox -message [::msgcat::mc "Empty commit description"] \
|
||||||
-icon info -type ok \
|
-icon info -type ok \
|
||||||
-detail [::msgcat::mc "You must enter a commit description"]]
|
-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 \
|
ttk::button $fr.body.bCommit -image done_20x20 -compound left \
|
||||||
-text "[::msgcat::mc "Commit changes"]" \
|
-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 \
|
ttk::button $fr.body.bPush -image doneall_20x20 -compound left \
|
||||||
-text "[::msgcat::mc "Push changes"]" \
|
-text "[::msgcat::mc "Push changes"]" \
|
||||||
-command "Git::PushPrepare; Git::DialogUpdate $fr"
|
-command "Git::PushPrepare; Git::DialogUpdate $fr"
|
||||||
|
|
|
@ -10,7 +10,7 @@ exec wish "$0" -- "$@"
|
||||||
######################################################
|
######################################################
|
||||||
# Version: 2.0.0
|
# Version: 2.0.0
|
||||||
# Release: alpha
|
# Release: alpha
|
||||||
# Build: 11112022122612
|
# Build: 11112022130209
|
||||||
######################################################
|
######################################################
|
||||||
|
|
||||||
# определим текущую версию, релиз и т.д.
|
# определим текущую версию, релиз и т.д.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user