summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRogier Goossens <goossens.rogier@gmail.com>2016-03-27 09:21:01 +0200
committerPaul Mackerras <paulus@ozlabs.org>2016-12-12 09:24:46 +1100
commit7f00f4c0de4f2ceef43b19e9465d8e8c0977caac (patch)
tree42bc4f1d3b7a9b627223cfddd38c61d6b8ada6cd
parent02e6a0601b846d197e062f5efdf29fdcef54d54c (diff)
downloadgit-7f00f4c0de4f2ceef43b19e9465d8e8c0977caac.tar.gz
gitk: Include commit title in branch dialog
Hi, I made another branch dialog related change, included in this message. It applies on top of my other two patches. Rogier. ------- 8< ------------------- 8< -------------- Only the SHA1 was included. It's convenient to have the title mentioned as well. Signed-off-by: Rogier Goossens <goossens.rogier@gmail.com> Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
-rwxr-xr-xgitk7
1 files changed, 6 insertions, 1 deletions
diff --git a/gitk b/gitk
index dc75c9772b..413711e4d4 100755
--- a/gitk
+++ b/gitk
@@ -9484,7 +9484,7 @@ proc mvbranch {} {
}
proc branchdia {top valvar uivar} {
- global NS
+ global NS commitinfo
upvar $valvar val $uivar ui
catch {destroy $top}
@@ -9497,6 +9497,11 @@ proc branchdia {top valvar uivar} {
$top.sha1 insert 0 $val(id)
$top.sha1 conf -state readonly
grid $top.id $top.sha1 -sticky w
+ ${NS}::entry $top.head -width 60
+ $top.head insert 0 [lindex $commitinfo($val(id)) 0]
+ $top.head conf -state readonly
+ grid x $top.head -sticky ew
+ grid columnconfigure $top 1 -weight 1
${NS}::label $top.nlab -text [mc "Name:"]
${NS}::entry $top.name -width 40
$top.name insert 0 $val(name)