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

Re: System wide gitattributes

From
Jeff King <peff@peff.net>
Date
Sep 24, 2009, 07:08 UTC
Message-ID
<20090924070857.GA461@coredump.intra.peff.net>
In-Reply-To
<4AB0D0EB.5080105@andrena.de>
On Wed, Sep 16, 2009 at 01:50:03PM +0200, David Förster wrote:
Show 7 quoted lines
> from the documentation I understand that things like external diff
> tools can be set up in a gitattributes file per repository (or
> subfolder).
> 
> Why is there no support for a ~/.gitattributes file? This would be
> very handy, for example to always get a textual diff of OpenDocument
> files.

I think it is simply that nobody found it particularly useful until now, and so nobody implemented it. Gitattributes tend to be somewhat tied to the project files themselves. However, I can certainly see the use of something like "*.doc diff=word" in your ~/.gitattributes.

So I think it is a sound concept; it just needs somebody to volunteer to write it.

-Peff
Previous: Matthieu Moy
Message 4 of 4 in “System wide gitattributes”
  1. David FörsterSep 16, 2009
  2. Rustom ModySep 16, 2009
  3. Matthieu MoySep 16, 2009
  4. Jeff KingSep 24, 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.