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

Re: [RFC] Case insensitive Git attributes

From
DHDakota Hawkins <dakota@dakotahawkins.com>
Date
Jan 22, 2017, 19:25 UTC
Message-ID
<CAHnyXxRx_iagZhki1rmVEpw+GZPWBRx7mNmahs3pruy57L3h-Q@mail.gmail.com>

Apologies for the delayed bump. I think because we're talking about affecting the behavior of .gitattributes that it would be better to have a distinct .gitattributes option, whether or not you also have a similar config option.

Since .gitattributes is versioned and config options are not, I think this takes it out of the realm of personal preference. It's already too easy for somebody to screw up and not have a "required" filter driver (e.g. git lfs) configured and damage a repo by getting unnoticed and unfiltered content committed.

I would love a .gitconfig option I could set that would let me stop manually ignoring case in globs for git commands, but this might actually make things worse for people if it were included as a config option only -- suddenly attributes could be applied to different files for different people.

Of course, if git supported a subset of config options you could actually version and ensure everybody else has, this wouldn't be a problem ;)

So, I think the correct (for today) solution is to have two options. One for .gitattributes globs and one for everything else. I realize that this might be somewhat controversial, so I wanted to see what everybody thought.

Next: Junio C Hamano
Message 1 of 6 in “Re: [RFC] Case insensitive Git attributes”
  1. Dakota HawkinsJan 22, 2017
  2. Junio C HamanoJan 23, 2017
  3. Lars SchneiderJan 23, 2017
  4. Junio C HamanoJan 23, 2017
  5. Junio C HamanoJan 23, 2017
  6. Lars SchneiderJan 24, 2017

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.