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

Re: [PATCH] Use "-f" when adding files with odd names in t9200.

From
Junio C Hamano <junkio@cox.net>
Date
Feb 3, 2007, 20:51 UTC
Message-ID
<7vabzv3qxi.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<F16FE131-CF33-4DD0-9A06-4A24C59C7623@silverinsanity.com>
Brian Gernhardt <benji@silverinsanity.com> writes:
> The only solution I can think of is to make dir.c:match_one() unicode-
> aware.  Which I'm working on to see if it will work, but don't know if
> you want to include that complication.

A filesystem that reports success on creat(path) and then does not return that path to later readdir() from that directory is broken from git's point of view. At least that has been the definition so far.

I am not sure offhand the implications of the change you propose to make to match_one(), but it could also be the place to handle case-challenged filesystems.

But even if you do that, I wonder what your plan would be to handle something like "git add .". read_directory_recursive() asks readdir() for existing pathnames, and we expect that can be used as parameter to add_file_to_index and then eventually we can call creat() or symlink() with it, so it also needs to be taught to behave consistently with respect to what your updated match_one() does.

Previous: Brian GernhardtNext: Brian Gernhardt
Message 7 of 17 in “t9200 still failing...”
  1. Brian GernhardtFeb 3, 2007
  2. Wolfgang FischerFeb 3, 2007
  3. Brian GernhardtFeb 3, 2007
  4. Use "-f" when adding files with odd names in t9200.Brian Gernhardt, Feb 3, 2007
  5. Junio C HamanoFeb 3, 2007
  6. Brian GernhardtFeb 3, 2007
  7. Junio C HamanoFeb 3, 2007
  8. Brian GernhardtFeb 3, 2007
  9. Junio C HamanoFeb 3, 2007
  10. Junio C HamanoFeb 4, 2007
  11. Shawn O. PearceFeb 4, 2007
  12. Brian GernhardtFeb 4, 2007
  13. Brian GernhardtFeb 4, 2007
  14. Junio C HamanoFeb 5, 2007
  15. Brian GernhardtFeb 5, 2007
  16. Brian GernhardtFeb 6, 2007
  17. Brian GernhardtFeb 3, 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.