Re: git-archive and unwanted .gitattributes
- From
René Scharfe <rene.scharfe@lsrfire.ath.cx>
- Date
- Jun 8, 2008, 15:24 UTC
- Message-ID
- <484BF9BA.30400@lsrfire.ath.cx>
- In-Reply-To
- <m33anpxn63.fsf@localhost.localdomain>
Jakub Narebski schrieb:
Show 9 quoted lines
> "Nguyen Thai Ngoc Duy" <pclouds@gmail.com> writes: > >> Currently attr.c will read .gitattributes on disk no matter there is a >> real worktree or not. > > Currently .gitattributes are read _only_ from the work tree. > There isn't even infrastructure to read .gitattributes for commit > (from a tree); git-check-attr, and I guess also internal git API, > deals only with in-tree .gitattribute file.
Attributes are taken from three places (in order of increasing precedence): a table of built-in defaults, .gitattributes files in the work tree, and the file $GIT_DIR/info/attributes.
René