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

Re: gitk-1.1 out

From
Linus Torvalds <torvalds@osdl.org>
Date
Jun 9, 2005, 14:58 UTC
Message-ID
<Pine.LNX.4.58.0506090728280.2286@ppc970.osdl.org>
In-Reply-To
<17064.15104.847009.390149@cargo.ozlabs.ibm.com>
On Thu, 9 Jun 2005, Paul Mackerras wrote:
> 
> Try this patch against gitk-1.1 and let me know what you think.  I
> draw the heads as a green rectangle with a black border.

Works for me. My cvs-import testing "syslinux" tree now has the heads of the different branches nicely named.

However, I also changed it to allow the "direct" kinds of tags which the cvs2git thing creates, where the tag file contains just a direct pointer to the commit, rather than a pointer to a tag object.

I'm not a TCL weenie, so this is just a very quick hack, and you may want to re-do things properly, but something like the appended works for me..

> I also added a -t option to gitk which makes it use gitk-rev-tree
> instead of git-rev-list, so that you can do
> 
> 	gitk -t $(ls .git/refs/heads)
No need, I think yoy may have an old version of git.
		Linus

--- hacky hack hack --- --- gitk 2005-06-09 07:26:50.000000000 -0700 +++ gitk 2005-06-09 07:55:00.000000000 -0700

@@ -151,6 +151,11 @@
 	    set fd [open $f r]
 	    set line [read $fd]
 	    if {[regexp {^[0-9a-f]{40}} $line id]} {
+		if {[regexp {[^/]*$} $f direct]} {
+		    set tagids($direct) $id
+		    lappend idtags($id) $direct
+		}
+
 		set contents [split [exec git-cat-file tag $id] "\n"]
 		set obj {}
 		set type {}
Previous: Paul MackerrasNext: Paul Mackerras
Message 8 of 9 in “gitk-1.1 out”
  1. Paul MackerrasJun 1, 2005
  2. Ingo MolnarJun 1, 2005
  3. SeanJun 2, 2005
  4. Linus TorvaldsJun 8, 2005
  5. Paul MackerrasJun 9, 2005
  6. Linus TorvaldsJun 9, 2005
  7. Paul MackerrasJun 9, 2005
  8. Linus TorvaldsJun 9, 2005
  9. Paul MackerrasJun 10, 2005

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.