Skip to content

Commit edee414

Browse files
author
Junio C Hamano
committed
Merge with master.
This merges commit f10e0e0 from master into our head commit c3958a7 Sincerely, jit-merge command.
2 parents c3958a7 + f10e0e0 commit edee414

File tree

2 files changed

+20
-11
lines changed

2 files changed

+20
-11
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ SCRIPTS=git git-apply-patch-script git-merge-one-file-script git-prune-script \
6969
git-request-pull-script git-bisect-script
7070

7171
SCRIPTS += git-count-objects-script
72-
SCRIPTS += git-send-email-script
72+
# SCRIPTS += git-send-email-script
7373

7474
PROG= git-update-cache git-diff-files git-init-db git-write-tree \
7575
git-read-tree git-commit-tree git-cat-file git-fsck-cache \

gitk

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ proc makewindow {} {
387387
set ctext .ctop.cdet.left.ctext
388388
text $ctext -bg white -state disabled -font $textfont \
389389
-width $geometry(ctextw) -height $geometry(ctexth) \
390-
-yscrollcommand ".ctop.cdet.left.sb set"
390+
-yscrollcommand ".ctop.cdet.left.sb set" -wrap none
391391
scrollbar .ctop.cdet.left.sb -command "$ctext yview"
392392
pack .ctop.cdet.left.sb -side right -fill y
393393
pack $ctext -side left -fill both -expand 1
@@ -1704,10 +1704,19 @@ proc selcanvline {w x y} {
17041704
selectline $l 1
17051705
}
17061706

1707+
proc commit_descriptor {p} {
1708+
global commitinfo
1709+
set l "..."
1710+
if {[info exists commitinfo($p)]} {
1711+
set l [lindex $commitinfo($p) 0]
1712+
}
1713+
return "$p ($l)"
1714+
}
1715+
17071716
proc selectline {l isnew} {
17081717
global canv canv2 canv3 ctext commitinfo selectedline
17091718
global lineid linehtag linentag linedtag
1710-
global canvy0 linespc parents nparents
1719+
global canvy0 linespc parents nparents children nchildren
17111720
global cflist currentid sha1entry
17121721
global commentend idtags idline
17131722

@@ -1790,15 +1799,15 @@ proc selectline {l isnew} {
17901799

17911800
set commentstart [$ctext index "end - 1c"]
17921801
set comment {}
1793-
foreach p $parents($id) {
1794-
set l "..."
1795-
if {[info exists commitinfo($p)]} {
1796-
set l [lindex $commitinfo($p) 0]
1797-
if {[string length $l] > 32} {
1798-
set l "[string range $l 0 28] ..."
1799-
}
1802+
if {[info exists parents($id)]} {
1803+
foreach p $parents($id) {
1804+
append comment "Parent: [commit_descriptor $p]\n"
1805+
}
1806+
}
1807+
if {[info exists children($id)]} {
1808+
foreach c $children($id) {
1809+
append comment "Child: [commit_descriptor $c]\n"
18001810
}
1801-
append comment "Parent: $p ($l)\n"
18021811
}
18031812
append comment "\n"
18041813
append comment [lindex $info 5]

0 commit comments

Comments
 (0)