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

Re: [PATCH] Allow gitk to start on Cygwin with native Win32 Tcl/Tk

From
Mark Levedahl <mlevedahl@gmail.com>
Date
Oct 20, 2007, 18:47 UTC
Message-ID
<471A4D45.1040107@gmail.com>
In-Reply-To
<18201.59649.800748.780690@cargo.ozlabs.ibm.com>
Paul Mackerras wrote:
Show 15 quoted lines
> Shawn O. Pearce writes:
>
>   
>>  Yes, I admit this is an odd patch.  I can certainly carry it in
>>  my own tree (I already carry some other patches) but I wonder if
>>  we shouldn't include it as some users may actually try to do this,
>>  just like I did.  Latest git-gui `master` already has changes to its
>>  Makefile and shell startup boilerplate to handle this weird case.
>>     
>
> Why do you need to change gitk itself?  If you're going to modify it
> with sed, why can't you change the $0 on the 3rd line to the installed
> path of the gitk script?
>
>   

While gitk is most likely installed as /usr/bin/gitk in Cygwin's filespace, that could resolve to anything in the Windows file system. It might be c:\cygwin\usr\bin\gitk, but could also be "d:\Documents and Settings\Bill\Programs\cygwin\usr\bin\gitk" depending upon who installed it and with what options. Both are seen as /usr/bin/gitk by Cygwin. Thus, Shawn is correct in using cygpath to resolve the name.

Also, as Cygwin's tcl/tk package is bound to the port of the insight debugger to Cygwin, and that project is stuck for years on 8.4.1, this patch (or something like it) may be the only way to allow gitk to access a more recent version on Cygwin in the foreseeable future. So, I think this is a good idea.

Mark
Previous: Paul Mackerras
Message 3 of 3 in “Allow gitk to start on Cygwin with native Win32 Tcl/Tk”
  1. Allow gitk to start on Cygwin with native Win32 Tcl/TkShawn O. Pearce, Sep 22, 2007
  2. Paul MackerrasOct 20, 2007
  3. Mark LevedahlOct 20, 2007

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.