Skip to content

Commit 521ae13

Browse files
committed
Merge git://git.kernel.org/pub/scm/gitk/gitk
* git://git.kernel.org/pub/scm/gitk/gitk: gitk: Add a menu option to start git gui gitk: Make line origin search update the busy status gitk: Update German translation gitk: Fix bug in accessing undefined "notflag" variable gitk: Highlight only when search type is "containing:". gitk: Fix context menu items for generating diffs when in tree mode
2 parents 3273ebc + 7fb0abb commit 521ae13

File tree

2 files changed

+55
-17
lines changed

2 files changed

+55
-17
lines changed

gitk-git/gitk

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -199,11 +199,7 @@ proc parseviewargs {n arglist} {
199199
set nextisval 1
200200
lappend glflags $arg
201201
}
202-
"--not" {
203-
set notflag [expr {!$notflag}]
204-
lappend revargs $arg
205-
}
206-
"--all" {
202+
"--not" - "--all" {
207203
lappend revargs $arg
208204
}
209205
"--merge" {
@@ -1915,6 +1911,9 @@ proc makewindow {} {
19151911
{mc "Reload" command reloadcommits -accelerator Meta1-F5}
19161912
{mc "Reread references" command rereadrefs}
19171913
{mc "List references" command showrefs -accelerator F2}
1914+
{xx "" separator}
1915+
{mc "Start git gui" command {exec git gui &}}
1916+
{xx "" separator}
19181917
{mc "Quit" command doquit -accelerator Meta1-Q}
19191918
}}
19201919
{mc "Edit" cascade {
@@ -3406,6 +3405,7 @@ proc show_line_source {} {
34063405
error_popup [mc "Couldn't start git blame: %s" $err]
34073406
return
34083407
}
3408+
nowbusy blaming [mc "Searching"]
34093409
fconfigure $f -blocking 0
34103410
set i [reg_instance $f]
34113411
set blamestuff($i) {}
@@ -3419,6 +3419,7 @@ proc stopblaming {} {
34193419
if {[info exists blameinst]} {
34203420
stop_instance $blameinst
34213421
unset blameinst
3422+
notbusy blaming
34223423
}
34233424
}
34243425

@@ -3433,6 +3434,7 @@ proc read_line_source {fd inst} {
34333434
}
34343435
unset commfd($inst)
34353436
unset blameinst
3437+
notbusy blaming
34363438
fconfigure $fd -blocking 1
34373439
if {[catch {close $fd} err]} {
34383440
error_popup [mc "Error running git blame: %s" $err]
@@ -4121,7 +4123,7 @@ proc askvhighlight {row id} {
41214123

41224124
proc hfiles_change {} {
41234125
global highlight_files filehighlight fhighlights fh_serial
4124-
global highlight_paths gdttype
4126+
global highlight_paths
41254127

41264128
if {[info exists filehighlight]} {
41274129
# delete previous highlights
@@ -6286,10 +6288,11 @@ proc findmore {} {
62866288
proc findselectline {l} {
62876289
global findloc commentend ctext findcurline markingmatches gdttype
62886290

6289-
set markingmatches 1
6291+
set markingmatches [expr {$gdttype eq [mc "containing:"]}]
62906292
set findcurline $l
62916293
selectline $l 1
6292-
if {$findloc == [mc "All fields"] || $findloc == [mc "Comments"]} {
6294+
if {$markingmatches &&
6295+
($findloc eq [mc "All fields"] || $findloc eq [mc "Comments"])} {
62936296
# highlight the matches in the comments
62946297
set f [$ctext get 1.0 $commentend]
62956298
set matches [findmatches $f]
@@ -7129,7 +7132,7 @@ proc gettreediffline {gdtf ids} {
71297132
set treediffs($ids) $treediff
71307133
}
71317134
unset treepending
7132-
if {$cmitmode eq "tree"} {
7135+
if {$cmitmode eq "tree" && [llength $diffids] == 1} {
71337136
gettree $diffids
71347137
} elseif {$ids != $diffids} {
71357138
if {![info exists diffmergeid]} {

gitk-git/po/de.po

Lines changed: 43 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: git-gui\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2008-10-18 22:03+1100\n"
11-
"PO-Revision-Date: 2008-05-24 22:40+0200\n"
10+
"POT-Creation-Date: 2008-10-25 13:18+0200\n"
11+
"PO-Revision-Date: 2008-10-25 13:23+0200\n"
1212
"Last-Translator: Christian Stimming <stimming@tuhh.de>\n"
1313
"Language-Team: German\n"
1414
"MIME-Version: 1.0\n"
@@ -19,6 +19,14 @@ msgstr ""
1919
msgid "Couldn't get list of unmerged files:"
2020
msgstr "Liste der nicht-zusammengeführten Dateien nicht gefunden:"
2121

22+
#: gitk:272
23+
msgid "Error parsing revisions:"
24+
msgstr "Fehler beim Laden der Versionen:"
25+
26+
#: gitk:327
27+
msgid "Error executing --argscmd command:"
28+
msgstr "Fehler beim --argscmd Kommando:"
29+
2230
#: gitk:340
2331
msgid "No files selected: --merge specified but no files are unmerged."
2432
msgstr ""
@@ -283,9 +291,9 @@ msgstr "Nur diesen hervorheben"
283291
msgid "External diff"
284292
msgstr "Externer Vergleich"
285293

286-
#: gitk:2245
294+
#: gitk:2255
287295
msgid "Blame parent commit"
288-
msgstr ""
296+
msgstr "Annotieren der Elternversion"
289297

290298
#: gitk:2488
291299
msgid ""
@@ -471,7 +479,33 @@ msgstr "<%s-Minus>\tSchriftgröße verkleinern"
471479
msgid "<F5>\t\tUpdate"
472480
msgstr "<F5>\t\tAktualisieren"
473481

474-
#: gitk:3200
482+
#: gitk:2979
483+
#, tcl-format
484+
msgid "Error getting \"%s\" from %s:"
485+
msgstr "Fehler beim Holen von »%s« von »%s«:"
486+
487+
#: gitk:3036 gitk:3045
488+
#, tcl-format
489+
msgid "Error creating temporary directory %s:"
490+
msgstr "Fehler beim Erzeugen eines temporären Verzeichnisses »%s«:"
491+
492+
#: gitk:3058
493+
msgid "command failed:"
494+
msgstr "Kommando fehlgeschlagen:"
495+
496+
#: gitk:3078
497+
msgid "No such commit"
498+
msgstr "Version nicht gefunden"
499+
500+
#: gitk:3083
501+
msgid "git gui blame: command failed:"
502+
msgstr "git gui blame: Kommando fehlgeschlagen:"
503+
504+
#: gitk:3092
505+
msgid "External diff viewer failed:"
506+
msgstr "Externes Vergleich-(Diff-)Programm fehlgeschlagen:"
507+
508+
#: gitk:3210
475509
msgid "Gitk view definition"
476510
msgstr "Gitk Ansichten"
477511

@@ -692,9 +726,10 @@ msgstr "Bitte geben Sie einen Namen für den neuen Zweig an."
692726
#, tcl-format
693727
msgid "Commit %s is already included in branch %s -- really re-apply it?"
694728
msgstr ""
695-
"Version »%s« ist bereits im Zweig »%s« enthalten -- trotzdem erneut eintragen?"
729+
"Version »%s« ist bereits im Zweig »%s« enthalten -- trotzdem erneut "
730+
"eintragen?"
696731

697-
#: gitk:7708
732+
#: gitk:7718
698733
msgid "Cherry-picking"
699734
msgstr "Version pflücken"
700735

@@ -836,7 +871,7 @@ msgstr "Vergleich nur für angezeigte Pfade"
836871

837872
#: gitk:9414
838873
msgid "Support per-file encodings"
839-
msgstr ""
874+
msgstr "Zeichenkodierung pro Datei ermitteln"
840875

841876
#: gitk:9421
842877
msgid "External diff tool"

0 commit comments

Comments
 (0)