Question

I do know it is not a place to discuss product specific problems, yet I try to ask a Git specific question that arouse in a Git GUI product.

The Phing PHP library has the $id$ notation in their source code header and the Git GUI product keeps extending the SHA-1 gitattribute filter onto those files making them appear as modified versions. Please see the screenshot below how this looks like.

enter image description here

Can someone disable this built in filter in a gitattribute file? It can be only applied to PHP files.

Was it helpful?

Solution

Just read Git's documentation and fix your .gitattributes accordingly

Git expand %Id% only if if your case met two conditions:

%Id% keyword used in file AND attribute ident is set for a path of type (of this file) in .gitattributes

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top