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

No way to have global diff settings? (global .gitattributes feature request)

From
Štěpán Němec <stepnem@gmail.com>
Date
Apr 21, 2010, 17:05 UTC
Message-ID
<87zl0wd9ce.fsf@gmail.com>
Hello,

it seems there is no global .gitattribute equivalent to .gitignore or .gitconfig. Wouldn't it make much sense to have one? Failing that, there really should be a way to specify some global diff options at least.

My use case:

I wanted to specify something like -F "^(" to git diff for lisp files. But well, git diff has no -F option! So shruggar from #git pointed me to gitattributes. OK, that's great and works, but now I have to put .gitattributes or info/attributes to all repos with lisp files in them? That rather sucks, if you ask me.

So I would like to ask if there is a way, and if not, if it could be considered a useful feature addition.

Thanks,
  Štěpán
Next: Štěpán Němec
Message 1 of 4 in “No way to have global diff settings? (global .gitattributes feature request)”
  1. Štěpán NěmecApr 21, 2010
  2. Štěpán NěmecApr 26, 2010
  3. Matthieu MoyApr 26, 2010
  4. Michael J GruberApr 26, 2010

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.