Re: MinGW port usable
- From
Linus Torvalds <torvalds@linux-foundation.org>
- Date
- Jan 29, 2007, 22:46 UTC
- Message-ID
- <Pine.LNX.4.64.0701291438580.3611@woody.linux-foundation.org>
- In-Reply-To
- <200701292320.43888.johannes.sixt@telecom.at>
On Mon, 29 Jan 2007, Johannes Sixt wrote:
Show 6 quoted lines
> I'd like to point interested parties to the MinGW port at > > git://repo.or.cz/git/mingw.git > > which is now in a usable state, methinks. I'm using it with git-gui and gitk > on a (almost) production repository.
Can you elaborate about any performance differences, especially with cygwin? Does this make git perform reasonably on Windows, or are the performance problems as bad as with cygwin?
> Junio, you may like to cherry-pick these two non-critical commits from my > repository: > > 8c8bb94f94f1d972c7ffadda4744cf343fac6f34 gitk: Use peek-remote instead of ls-remote.
gitk really shouldn't use either. It should probably use
git-show-ref -h -d
instead, which has the same output format (modulo a space vs tab issue), and is entirely local, with no silly unnecessary remote connext.
Something like this patch.
Does that work on mingw too?
Linus ----
diff --git a/gitk b/gitk index 031c829..6b4a4ac 100755 --- a/gitk +++ b/gitk @@ -309,9 +309,9 @@ 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 show-ref -h -d] r] while {0 <= [set n [gets $refd line]]} { - if {![regexp {^([0-9a-f]{40}) refs/([^^]*)$} $line \ + if {![regexp {^([0-9a-f]{40}) refs/([^^]*)$} $line \ match id path]} { continue }