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

Re: [PATCH] Make git-clean a builtin

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
Oct 8, 2007, 02:17 UTC
Message-ID
<alpine.LFD.0.999.0710071916510.23684@woody.linux-foundation.org>
In-Reply-To
<20071008020435.GA20050@coredump.intra.peff.net>
On Sun, 7 Oct 2007, Jeff King wrote:
Show 5 quoted lines
> 
>   fd = open(".", O_RDONLY);
>   chdir(path);
>   ...
>   fchdir(fd);
fchdir() is not portable.

I think it would be better to not chdir() at all. Yes, that means having to prepend the prefix to the names, but that is what git generally does (for that - and other - reasons).

		Linus
Previous: Jeff KingNext: Jeff King
Message 6 of 9 in “Make git-clean a builtin”
  1. Make git-clean a builtinShawn Bohrer, Oct 6, 2007
  2. Frank LichtenheldOct 6, 2007
  3. Shawn BohrerOct 7, 2007
  4. Jeff KingOct 8, 2007
  5. Jeff KingOct 8, 2007
  6. Linus TorvaldsOct 8, 2007
  7. Jeff KingOct 8, 2007
  8. Johannes SixtOct 8, 2007
  9. Linus TorvaldsOct 8, 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.