diff --git a/.gitattributes b/.gitattributes index ebf013917b..2030459c05 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,3 +1,4 @@ .gitignore export-ignore .gitattributes export-ignore devel/third-party/ export-ignore +*.min.js diff=minjs diff --git a/docs/hacking.pod b/docs/hacking.pod index 792c1495f9..2be789dca3 100644 --- a/docs/hacking.pod +++ b/docs/hacking.pod @@ -48,6 +48,16 @@ to, and does not introduce any unwanted behavior in doing so. Commit messages explain the B as much as the B of each commit, and not include extraneous changes. +=head2 Git Config Files + +The RT repo has a C<.gitattributes> file with a line that looks for a diff +configuration for minified javascript. To help git generate readable +diffs, you can use a confguration like this after installing the +C utility. + +[diff "minjs"] + textconv = js-beautify + cachetextconv = true =head1 Code conventions