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

Re: MinGW port usable

From
Shawn O. Pearce <spearce@spearce.org>
Date
Jan 30, 2007, 15:27 UTC
Message-ID
<20070130152721.GB25779@spearce.org>
In-Reply-To
<Pine.LNX.4.63.0701301114590.22628@wbgn013.biozentrum.uni-wuerzburg.de>
Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
Show 8 quoted lines
> On Tue, 30 Jan 2007, Christian MICHON wrote:
> > just to be more clear: when using the .bat shortcut, calling gitk
> > > from within git-gui fails.
> 
> I guess you need to change the .bat shortcut, so that the tcl script is 
> called via bash instead of directly from cmd.
> 
> Otherwise git-gui does not have a chance to find the MSYS environment.

Hmmph. The [is_Cygwin] test within git-gui causes it to setup the .bat shortcut using:

  $(cygpath --windows /bin/sh) --login -c 'git git-gui'

for exactly that reason. I didn't think that with MSYS there was environment to hand down through a shell's init scripts. I thought it was all coming from Windows itself. Oops.

When starting gitk, git-gui assumes (rightly or wrongly) that gitk is a Tcl/Tk script and launches it with the same Tcl interpreter that is running git-gui. I did that to bypass the unnecessary fork/exec of a shell just to enter a wish process. I had assumed that would also work well on the MSYS case. Apparently not.

Patches to git-gui would be welcome. It will probably be a few weeks before I can get an MSYS+Git configuration working that I can test git-gui against. I'm just swamped with too many tasks right now, and this, although interesting enough to fix, is likely to take a back seat.

-- 
Shawn.
Previous: Johannes SchindelinNext: Johannes Sixt
Message 9 of 39 in “MinGW port usable”
  1. Johannes SixtJan 29, 2007
  2. Shawn O. PearceJan 29, 2007
  3. Christian MICHONJan 29, 2007
  4. Shawn O. PearceJan 29, 2007
  5. Christian MICHONJan 29, 2007
  6. Christian MICHONJan 30, 2007
  7. Christian MICHONJan 30, 2007
  8. Johannes SchindelinJan 30, 2007
  9. Shawn O. PearceJan 30, 2007
  10. Johannes SixtJan 30, 2007
  11. Johannes SixtJan 30, 2007
  12. Linus TorvaldsJan 29, 2007
  13. Christian MICHONJan 29, 2007
  14. Johannes SchindelinJan 30, 2007
  15. Christian MICHONJan 30, 2007
  16. Johannes SixtJan 30, 2007
  17. Johannes SchindelinJan 30, 2007
  18. Shawn O. PearceJan 30, 2007
  19. Johannes SchindelinJan 30, 2007
  20. Shawn O. PearceJan 30, 2007
  21. Johannes SchindelinJan 30, 2007
  22. Shawn O. PearceJan 30, 2007
  23. Johannes SchindelinJan 30, 2007
  24. Daniel BarkalowJan 30, 2007
  25. Johannes SixtJan 30, 2007
  26. Andreas EricssonJan 30, 2007
  27. Johannes SchindelinJan 30, 2007
  28. Daniel BarkalowJan 30, 2007
  29. Johannes SchindelinJan 30, 2007
  30. Daniel BarkalowJan 30, 2007
  31. Johannes SixtJan 30, 2007
  32. Junio C HamanoJan 30, 2007
  33. H. Peter AnvinFeb 1, 2007
  34. Johannes SixtFeb 1, 2007
  35. H. Peter AnvinFeb 1, 2007
  36. H. Peter AnvinFeb 2, 2007
  37. Davide LibenziFeb 2, 2007
  38. Johannes SixtFeb 2, 2007
  39. H. Peter AnvinFeb 2, 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.