[Kde-scm-interest] Git hooks update

Johannes Sixt j.sixt at viscovery.net
Wed Jun 23 08:39:45 CEST 2010


Am 6/22/2010 13:01, schrieb Yury G. Kudryashov:
> Johannes Sixt wrote:
> 
>> Am 6/22/2010 9:35, schrieb Thiago Macieira:
>> But I suggest that you do not try to parse and interpret .gitattribute
>> files yourself. The interaction between .gitattribute files at different
>> levels in the hierarchy is subtle. I suggest to parse the output of git
>> diff --check (or git show --check) instead of doing it all manually.
> Do you mean git check-attr?

No. Although if git diff --check is not usable for some reason, then git
check-attr should be used to determine the crlf attribute. (Thanks for
pointing it out; I had completely forgotten about it.)

-- Hannes

-- 
"Atomic objects are neither active nor radioactive." --
Programming Languages -- C++, Final Committee Draft (Doc.N3092)


More information about the Kde-scm-interest mailing list