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

Re: [PATCH] [RFC] Design for pathname encoding gitattribute [RESEND]

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 22, 2008, 06:37 UTC
Message-ID
<7vejcav01f.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<alpine.LSU.1.00.0801220527550.5731@racer.site>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 7 quoted lines
> On Tue, 22 Jan 2008, Sam Vilain wrote:
>
>>  Documentation/gitattributes.txt |   19 +++++++++++++++++++
>
> As I said on IRC already, I don't think that this is served well as an 
> "attribute"... it is most likely that the issue either affects _all_ 
> filenames , or _none_.

I do not think .gitattributes is the way to go, but I do not think this has to be all or nothing either.

I can well imagine somebody wanting to do:
	Documentation/ja/README-spelled-in-Japanese
	Documentation/ja/... other files in Japanese ...
	Documentation/zh/README-spelled-in-Chinese
	Documentation/zh/... other files in Chinese ...

and have all files under Documentation/ja/ in EUC-JP while Documentation/zh/ are BIG5 or whatever (I do not speak nor write Chinese).

Maybe the project originates from Brasil and the string "Documentation" itself is spelled as "Documentação" and in Latin-1 (no, I do not write pt_BR either, and I admit at this point this is a contrived example that I cannot _that_ well imagine, but is not so far-fetched).

So we _could_ have .git-encoding in Documentation/ja/ and Documentation/zh/ each of which says "this directory and everything below are in this encoding, unless overriden otherwise by a deeper directory".

Previous: Johannes SchindelinNext: Junio C Hamano
Message 3 of 11 in “[RFC] Design for pathname encoding gitattribute [RESEND]”
  1. [RFC] Design for pathname encoding gitattribute [RESEND]Sam Vilain, Jan 22, 2008
  2. Johannes SchindelinJan 22, 2008
  3. Junio C HamanoJan 22, 2008
  4. Junio C HamanoJan 22, 2008
  5. Junio C HamanoJan 22, 2008
  6. Mark JunkerJan 22, 2008
  7. Junio C HamanoJan 22, 2008
  8. Rafael Garcia-SuarezJan 22, 2008
  9. Sam VilainJan 22, 2008
  10. Junio C HamanoJan 22, 2008
  11. Sam VilainJan 22, 2008

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.