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

Re: [PATCH] Makefile: add clean-obsolete-scripts target

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jan 11, 2007, 08:22 UTC
Message-ID
<Pine.LNX.4.63.0701110919040.22628@wbgn013.biozentrum.uni-wuerzburg.de>
In-Reply-To
<7vhcuyaaxq.fsf@assigned-by-dhcp.cox.net>
Hi,
On Wed, 10 Jan 2007, Junio C Hamano wrote:
Show 10 quoted lines
> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> 
> > On Cygwin, newly builtins are not recognized, because there exist both
> > the executable binaries (with .exe extension) _and_ the now-obsolete
> > scripts (without extension), but the script is executed.
> >
> > "make clean-obsolete-scripts" removes these ambiguities by removing the
> > older of these file pairs.
> 
> I would prefer it to be rather automatic -- how about this instead?

I like your method better. However, does it execute an rm -f for _every_ builtin, even if it does not exist? This is a huge performance eater on cygwin. Every fork() is _expensive_.

Even worse: are you sure that it does not remove the _builtins_? Maybe you noticed that I asked for "git-bla." instead of "git-bla", since the latter will happily access "git-bla.exe" (at least when you do an "ls git-bla" and "git-bla.exe" exists, but not "git-bla", it _will_ show the metadata of "git-bla.exe", but with the name "git-bla").

Will test.

Ciao, Dscho

Previous: Alex RiesenNext: Johannes Schindelin
Message 9 of 10 in “Makefile: add clean-obsolete-scripts target”
  1. Makefile: add clean-obsolete-scripts targetJohannes Schindelin, Jan 10, 2007
  2. Alex RiesenJan 10, 2007
  3. Johannes SchindelinJan 10, 2007
  4. Alex RiesenJan 10, 2007
  5. Junio C HamanoJan 10, 2007
  6. Alex RiesenJan 10, 2007
  7. Junio C HamanoJan 11, 2007
  8. Alex RiesenJan 11, 2007
  9. Johannes SchindelinJan 11, 2007
  10. Johannes SchindelinJan 11, 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.