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

Re: [PATCH 3/3] read_directory(): infrastructure for pathname character set conversion

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
May 14, 2009, 22:51 UTC
Message-ID
<alpine.LFD.2.01.0905141547480.3343@localhost.localdomain>
In-Reply-To
<727e50150905141536r5f3c4c1ap615166ba71018bf3@mail.gmail.com>
On Thu, 14 May 2009, Aaron Cohen wrote:
> 
> Does this possibly allow using the magic "\\?\" prefix on windows to
> avoid file name length restrictions?

That would be the intention - eventually. The point being exactly that the 'path' side can be done differently from the 'basename' part that git then uses internally.

However, the thing is not complete. As shown from the strace, almost all filesystem operations then end up using the 'git internal' name anyway. It's currently literally just the filesystem traversal itself that knows to separate the notion of 'internal pathname representation' from the filesystem accesses.

So right now, the only thing that uses the filesystem-specific stuff is the "opendir()" (and the lstat() in case the filesystem doesn't support d_type in the dirent).

		Kubys
Previous: Aaron CohenNext: Linus Torvalds
Message 7 of 13 in “dir.c: clean up handling of 'path' parameter in read_directory_recursive()”
  1. 1/3 dir.c: clean up handling of 'path' parameter in read_directory_recursive()Linus Torvalds, May 14, 2009
  2. 2/3 Add 'fill_directory()' helper function for directory traversalLinus Torvalds, May 14, 2009
  3. 3/3 read_directory(): infrastructure for pathname character set conversionLinus Torvalds, May 14, 2009
  4. Linus TorvaldsMay 14, 2009
  5. Johannes SchindelinMay 14, 2009
  6. Aaron CohenMay 14, 2009
  7. Linus TorvaldsMay 14, 2009
  8. Linus TorvaldsMay 14, 2009
  9. 4/3 Introduce 'convert_path_to_git()'Linus Torvalds, May 15, 2009
  10. Junio C HamanoMay 16, 2009
  11. Linus TorvaldsMay 16, 2009
  12. Jens KilianMay 19, 2009
  13. John KoleszarMay 19, 2009

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.