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

[PATCH] gitk: Use git wrapper to run git-ls-remote.

From
MWMark Wooding <mdw@distorted.org.uk>
Date
Mar 30, 2006, 12:31 UTC
Message-ID
<20060330123151.25779.73775.stgit@metalzone.distorted.org.uk>
From: Mark Wooding <mdw@distorted.org.uk>

For some reason, the Cygwin Tcl's `exec' command has trouble running scripts. Fix this by using the C `git' wrapper. Other GIT programs run by gitk are written in C already, so we don't need to incur a performance hit of going via the wrapper (which I'll bet isn't pretty under Cygwin).

Signed-off-by: Mark Wooding <mdw@distorted.org.uk>
---
 gitk |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gitk b/gitk
index f4c6624..ac85d1c 100755
--- a/gitk
+++ b/gitk
@@ -359,7 +359,7 @@ proc readrefs {} {
     foreach v {tagids idtags headids idheads otherrefids idotherrefs} {
 	catch {unset $v}
     }
-    set refd [open [list | git-ls-remote [gitdir]] r]
+    set refd [open [list | git ls-remote [gitdir]] r]
     while {0 <= [set n [gets $refd line]]} {
 	if {![regexp {^([0-9a-f]{40})	refs/([^^]*)$} $line \
 	    match id path]} {
Next: Junio C Hamano
Message 1 of 5 in “gitk: Use git wrapper to run git-ls-remote.”
  1. gitk: Use git wrapper to run git-ls-remote.Mark Wooding, Mar 30, 2006
  2. Junio C HamanoMar 30, 2006
  3. Mark WoodingMar 30, 2006
  4. Johannes SchindelinMar 30, 2006
  5. Christopher FaylorMar 30, 2006

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.