----- Original Message ----- From: Hugh Gleaves To: [email protected] Sent: Thursday, May 29, 2014 9:22 PM Subject: [git-users] Git extensions to use enhanced difference detection
I'm newish to Git and see that it seems to do change detection using a line by line kind of algorithm. Is there any way to get Git to be more intelligent, for example when comparing a source file to some earlier version don't just use the line-by-line compare but instead use a compare that is syntax aware for the kind of file that's changed? If two files that look different actually have identical syntax trees then it would be great to have Git not perceive them as different. So just wondering if the system has hooks or if any Git hosting sites offer this kind of thing. Thx -- There is a config variable, and there are details in the .gitattibutes man page, for deciding which diff function is to be used. https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html Defining an external diff driver. https://www.kernel.org/pub/software/scm/git/docs/git-config.html diff.external Philip. -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
