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

Re: Make "git-ls-files" work in subdirectories

From
Linus Torvalds <torvalds@osdl.org>
Date
Aug 21, 2005, 23:17 UTC
Message-ID
<Pine.LNX.4.58.0508211613340.3317@g5.osdl.org>
In-Reply-To
<20050821224622.GB26241@taniwha.stupidest.org>
On Sun, 21 Aug 2005, Chris Wedgwood wrote:
> 
> is there some aversion to getopt or similar get?

getopt() is too limited, and getopt_long() is very glibc-specific and thus inherently evil. And the complexity of doing autoconf or similar is worse than just doing it by hand.

I've considered doing a small library that could just be contained withing the git sources to avoid duplication, but it just hasn't been worth it.

If somebody wants to do it, go wild. The rules are
 - anything that is not expected of "modern unix" is too unportable (glibc 
   is not a realistic expectation, but a lot of GNU tools _are_ realistic)
 - autoconf and its ilk are worse than the disease they are trying to fix
		Linus
Previous: Chris WedgwoodNext: Chris Wedgwood
Message 3 of 5 in “Make "git-ls-files" work in subdirectories”
  1. Linus TorvaldsAug 21, 2005
  2. Chris WedgwoodAug 21, 2005
  3. Linus TorvaldsAug 21, 2005
  4. Chris WedgwoodAug 21, 2005
  5. YOSHIFUJI Hideaki / 吉藤英明Aug 21, 2005

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.