Skip to content

Commit 2dbae5a

Browse files
committed
Merge git://git.kernel.org/pub/scm/gitk/gitk
* git://git.kernel.org/pub/scm/gitk/gitk: gitk: Update cherry-pick error message parsing gitk: Quote tag names in event bindings to avoid problems with % chars gitk: Allow user to control how much of the SHA1 ID gets auto-selected gitk: spelling fixes in Russian translation gitk: Take only numeric version components when computing $git_version
2 parents c3f6163 + b74307f commit 2dbae5a

File tree

2 files changed

+27
-23
lines changed

2 files changed

+27
-23
lines changed

gitk-git/gitk

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2652,7 +2652,7 @@ proc savestuff {w} {
26522652
global viewname viewfiles viewargs viewargscmd viewperm nextviewnum
26532653
global cmitmode wrapcomment datetimeformat limitdiffs
26542654
global colors uicolor bgcolor fgcolor diffcolors diffcontext selectbgcolor
2655-
global autoselect extdifftool perfile_attrs markbgcolor use_ttk
2655+
global autoselect autosellen extdifftool perfile_attrs markbgcolor use_ttk
26562656
global hideremotes want_ttk
26572657

26582658
if {$stuffsaved} return
@@ -2673,6 +2673,7 @@ proc savestuff {w} {
26732673
puts $f [list set cmitmode $cmitmode]
26742674
puts $f [list set wrapcomment $wrapcomment]
26752675
puts $f [list set autoselect $autoselect]
2676+
puts $f [list set autosellen $autosellen]
26762677
puts $f [list set showneartags $showneartags]
26772678
puts $f [list set hideremotes $hideremotes]
26782679
puts $f [list set showlocalchanges $showlocalchanges]
@@ -6300,6 +6301,7 @@ proc drawtags {id x xt y1} {
63006301
-width $lthickness -fill black -tags tag.$id]
63016302
$canv lower $t
63026303
foreach tag $marks x $xvals wid $wvals {
6304+
set tag_quoted [string map {% %%} $tag]
63036305
set xl [expr {$x + $delta}]
63046306
set xr [expr {$x + $delta + $wid + $lthickness}]
63056307
set font mainfont
@@ -6308,7 +6310,7 @@ proc drawtags {id x xt y1} {
63086310
set t [$canv create polygon $x [expr {$yt + $delta}] $xl $yt \
63096311
$xr $yt $xr $yb $xl $yb $x [expr {$yb - $delta}] \
63106312
-width 1 -outline black -fill yellow -tags tag.$id]
6311-
$canv bind $t <1> [list showtag $tag 1]
6313+
$canv bind $t <1> [list showtag $tag_quoted 1]
63126314
set rowtextx([rowofcommit $id]) [expr {$xr + $linespc}]
63136315
} else {
63146316
# draw a head or other ref
@@ -6335,9 +6337,9 @@ proc drawtags {id x xt y1} {
63356337
set t [$canv create text $xl $y1 -anchor w -text $tag -fill $fgcolor \
63366338
-font $font -tags [list tag.$id text]]
63376339
if {$ntags >= 0} {
6338-
$canv bind $t <1> [list showtag $tag 1]
6340+
$canv bind $t <1> [list showtag $tag_quoted 1]
63396341
} elseif {$nheads >= 0} {
6340-
$canv bind $t $ctxbut [list headmenu %X %Y $id $tag]
6342+
$canv bind $t $ctxbut [list headmenu %X %Y $id $tag_quoted]
63416343
}
63426344
}
63436345
return $xt
@@ -6896,7 +6898,7 @@ proc selectline {l isnew {desired_loc {}}} {
68966898
global mergemax numcommits pending_select
68976899
global cmitmode showneartags allcommits
68986900
global targetrow targetid lastscrollrows
6899-
global autoselect jump_to_here
6901+
global autoselect autosellen jump_to_here
69006902

69016903
catch {unset pending_select}
69026904
$canv delete hover
@@ -6958,7 +6960,7 @@ proc selectline {l isnew {desired_loc {}}} {
69586960
$sha1entry delete 0 end
69596961
$sha1entry insert 0 $id
69606962
if {$autoselect} {
6961-
$sha1entry selection range 0 end
6963+
$sha1entry selection range 0 $autosellen
69626964
}
69636965
rhighlight_sel $id
69646966

@@ -9063,7 +9065,7 @@ proc cherrypick {} {
90639065
to file '%s'.\nPlease commit, reset or stash\
90649066
your changes and try again." $fname]
90659067
} elseif {[regexp -line \
9066-
{^(CONFLICT \(.*\):|Automatic cherry-pick failed)} \
9068+
{^(CONFLICT \(.*\):|Automatic cherry-pick failed|error: could not apply)} \
90679069
$err]} {
90689070
if {[confirm_popup [mc "Cherry-pick failed because of merge\
90699071
conflict.\nDo you wish to run git citool to\
@@ -10756,7 +10758,7 @@ proc doprefs {} {
1075610758
global maxwidth maxgraphpct use_ttk NS
1075710759
global oldprefs prefstop showneartags showlocalchanges
1075810760
global uicolor bgcolor fgcolor ctext diffcolors selectbgcolor markbgcolor
10759-
global tabstop limitdiffs autoselect extdifftool perfile_attrs
10761+
global tabstop limitdiffs autoselect autosellen extdifftool perfile_attrs
1076010762
global hideremotes want_ttk have_ttk
1076110763

1076210764
set top .gitkprefs
@@ -10784,9 +10786,10 @@ proc doprefs {} {
1078410786
${NS}::checkbutton $top.showlocal -text [mc "Show local changes"] \
1078510787
-variable showlocalchanges
1078610788
grid x $top.showlocal -sticky w
10787-
${NS}::checkbutton $top.autoselect -text [mc "Auto-select SHA1"] \
10789+
${NS}::checkbutton $top.autoselect -text [mc "Auto-select SHA1 (length)"] \
1078810790
-variable autoselect
10789-
grid x $top.autoselect -sticky w
10791+
spinbox $top.autosellen -from 1 -to 40 -width 4 -textvariable autosellen
10792+
grid x $top.autoselect $top.autosellen -sticky w
1079010793
${NS}::checkbutton $top.hideremotes -text [mc "Hide remote refs"] \
1079110794
-variable hideremotes
1079210795
grid x $top.hideremotes -sticky w
@@ -11428,6 +11431,7 @@ set showlocalchanges 1
1142811431
set limitdiffs 1
1142911432
set datetimeformat "%Y-%m-%d %H:%M:%S"
1143011433
set autoselect 1
11434+
set autosellen 40
1143111435
set perfile_attrs 0
1143211436
set want_ttk 1
1143311437

@@ -11581,7 +11585,7 @@ if {![info exists have_ttk]} {
1158111585
set use_ttk [expr {$have_ttk && $want_ttk}]
1158211586
set NS [expr {$use_ttk ? "ttk" : ""}]
1158311587

11584-
set git_version [join [lrange [split [lindex [exec git version] end] .] 0 2] .]
11588+
regexp {^git version ([\d.]*\d)} [exec git version] _ git_version
1158511589

1158611590
set show_notes {}
1158711591
if {[package vcompare $git_version "1.6.6.2"] >= 0} {

gitk-git/po/ru.po

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ msgstr "Ошибка в идентификаторе версии:"
2424

2525
#: gitk:323
2626
msgid "Error executing --argscmd command:"
27-
msgstr "Ошибка выполнения команды заданой --argscmd:"
27+
msgstr "Ошибка выполнения команды заданной --argscmd:"
2828

2929
#: gitk:336
3030
msgid "No files selected: --merge specified but no files are unmerged."
@@ -37,7 +37,7 @@ msgid ""
3737
"No files selected: --merge specified but no unmerged files are within file "
3838
"limit."
3939
msgstr ""
40-
"Файлы не выбраны: указан --merge, но в рамках указаного "
40+
"Файлы не выбраны: указан --merge, но в рамках указанного "
4141
"ограничения на имена файлов нет ни одного "
4242
"где эта операция должна быть завершена."
4343

@@ -246,11 +246,11 @@ msgstr "Файлы"
246246

247247
#: gitk:2326 gitk:2339
248248
msgid "Diff this -> selected"
249-
msgstr "Сравнить это состояние с выделеным"
249+
msgstr "Сравнить это состояние с выделенным"
250250

251251
#: gitk:2327 gitk:2340
252252
msgid "Diff selected -> this"
253-
msgstr "Сравнить выделеное с этим состоянием"
253+
msgstr "Сравнить выделенное с этим состоянием"
254254

255255
#: gitk:2328 gitk:2341
256256
msgid "Make patch"
@@ -440,19 +440,19 @@ msgstr "<%s-F>\t\tПоиск"
440440
#: gitk:2666
441441
#, tcl-format
442442
msgid "<%s-G>\t\tMove to next find hit"
443-
msgstr "<%s-G>\t\tПерейти к следующему найденому состоянию"
443+
msgstr "<%s-G>\t\tПерейти к следующему найденному состоянию"
444444

445445
#: gitk:2667
446446
msgid "<Return>\tMove to next find hit"
447-
msgstr "<Return>\tПерейти к следующему найденому состоянию"
447+
msgstr "<Return>\tПерейти к следующему найденному состоянию"
448448

449449
#: gitk:2668
450450
msgid "/\t\tFocus the search box"
451451
msgstr "/\t\tПерейти к полю поиска"
452452

453453
#: gitk:2669
454454
msgid "?\t\tMove to previous find hit"
455-
msgstr "?\t\tПерейти к предыдущему найденому состоянию"
455+
msgstr "?\t\tПерейти к предыдущему найденному состоянию"
456456

457457
#: gitk:2670
458458
msgid "f\t\tScroll diff view to next file"
@@ -466,7 +466,7 @@ msgstr "<%s-S>\t\tПродолжить поиск в списке изменен
466466
#: gitk:2672
467467
#, tcl-format
468468
msgid "<%s-R>\t\tSearch for previous hit in diff view"
469-
msgstr "<%s-R>\t\tПерейти к предыдущему найденому тексту в списке изменений"
469+
msgstr "<%s-R>\t\tПерейти к предыдущему найденному тексту в списке изменений"
470470

471471
#: gitk:2673
472472
#, tcl-format
@@ -855,7 +855,7 @@ msgstr "Лёгкий: оставить рабочий каталог и инде
855855
#: gitk:8472
856856
msgid "Mixed: Leave working tree untouched, reset index"
857857
msgstr ""
858-
"Смешаный: оставить рабочий каталог неизменным, установить индекс"
858+
"Смешанный: оставить рабочий каталог неизменным, установить индекс"
859859

860860
#: gitk:8475
861861
msgid ""
@@ -962,7 +962,7 @@ msgstr "Показывать близкие метки"
962962

963963
#: gitk:10126
964964
msgid "Limit diffs to listed paths"
965-
msgstr "Ограничить показ изменений выбраными файлами"
965+
msgstr "Ограничить показ изменений выбранными файлами"
966966

967967
#: gitk:10129
968968
msgid "Support per-file encodings"
@@ -1022,11 +1022,11 @@ msgstr "заголовок блока изменений"
10221022

10231023
#: gitk:10169
10241024
msgid "Marked line bg"
1025-
msgstr "Фон выбраной строки"
1025+
msgstr "Фон выбранной строки"
10261026

10271027
#: gitk:10171
10281028
msgid "marked line background"
1029-
msgstr "фон выбраной строки"
1029+
msgstr "фон выбранной строки"
10301030

10311031
#: gitk:10175
10321032
msgid "Select bg"

0 commit comments

Comments
 (0)