git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] gitattributes on a bare repo
@ 2008-08-03  8:34 Giuseppe Bilotta
  0 siblings, 0 replies; only message in thread
From: Giuseppe Bilotta @ 2008-08-03  8:34 UTC (permalink / raw)
  To: git

Hello all,

I realized recently that gitattributes don't work on a bare repo. It's
easy to see why (no .gitattributes file to look into) and the
'official' solution is to use .git/info/attributes for that, which has
the obvious problem of being local and not carried over to other repos
(so that e.g. you have to recreate it and keep it up to date on remote
repos too).

I was discussing this on IRC with pasky and he suggested that the best
way to approach the matter was to use the .gitattributes from the
relevant head. For example, a diff-tree would use the first
.gitattributes from the first tree-ish parameter. I have actually
looked into implementing this myself, but I'm afraid my git mojo isn't
strong enough yet.

A similar discussion would hold of course for .gitignore and the
corresponding info/excludes file.

I'm not sure how widespread the need for such a possibility (using
.gitignore and .gitattributes on bare repos) is, but at least
.gitattributes it would allow gitweb to use the correct diff
funcnames.

-- 
Giuseppe "Oblomov" Bilotta

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-08-03  8:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-03  8:34 [RFC] gitattributes on a bare repo Giuseppe Bilotta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).