git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH v2a 3/3] gitk: Include commit title in branch dialog

From
RGRogier Goossens <goossens.rogier@gmail.com>
Date
Mar 27, 2016, 07:21 UTC
Message-ID
<9310641.nkQBije1VN@wiske>
In-Reply-To
<10662590.KWXHt2RUKZ@wiske>
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>
---
 gitk | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/gitk b/gitk
index dc75c97..413711e 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)
-- 
2.1.4
Previous: Rogier GoossensNext: Paul Mackerras
Message 8 of 9 in “gitk: Two improvements to the branch context menu”
  1. 0/2 gitk: Two improvements to the branch context menuRogier Goossens, Jan 15, 2016
  2. 1/2 gitk: Add a 'rename' option to the branch context menuRogier Goossens, Jan 15, 2016
  3. Paul MackerrasMar 19, 2016
  4. 2/2 gitk: Allow checking out a remote branchRogier Goossens, Jan 15, 2016
  5. 0/2 gitk: Two improvements to the branch context menuRogier Goossens, Mar 19, 2016
  6. 1/2 gitk: Add a 'rename' option to the branch context menuRogier Goossens, Mar 19, 2016
  7. 2/2 gitk: Allow checking out a remote branchRogier Goossens, Mar 19, 2016
  8. 3/3 gitk: Include commit title in branch dialogRogier Goossens, Mar 27, 2016
  9. Paul MackerrasDec 12, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.