@@ -387,7 +387,7 @@ proc makewindow {} {
387
387
set ctext .ctop.cdet.left.ctext
388
388
text $ctext -bg white -state disabled -font $textfont \
389
389
-width $geometry(ctextw) -height $geometry(ctexth) \
390
- -yscrollcommand " .ctop.cdet.left.sb set"
390
+ -yscrollcommand " .ctop.cdet.left.sb set" -wrap none
391
391
scrollbar .ctop.cdet.left.sb -command " $ctext yview"
392
392
pack .ctop.cdet.left.sb -side right -fill y
393
393
pack $ctext -side left -fill both -expand 1
@@ -1704,10 +1704,19 @@ proc selcanvline {w x y} {
1704
1704
selectline $l 1
1705
1705
}
1706
1706
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
+
1707
1716
proc selectline {l isnew} {
1708
1717
global canv canv2 canv3 ctext commitinfo selectedline
1709
1718
global lineid linehtag linentag linedtag
1710
- global canvy0 linespc parents nparents
1719
+ global canvy0 linespc parents nparents children nchildren
1711
1720
global cflist currentid sha1entry
1712
1721
global commentend idtags idline
1713
1722
@@ -1790,15 +1799,15 @@ proc selectline {l isnew} {
1790
1799
1791
1800
set commentstart [$ctext index " end - 1c" ]
1792
1801
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 "
1800
1810
}
1801
- append comment " Parent: $p ($l )\n "
1802
1811
}
1803
1812
append comment " \n "
1804
1813
append comment [lindex $info 5]
0 commit comments