From e731a7cdf17bbf4a4effa58d870d8d3ab4ec3ade Mon Sep 17 00:00:00 2001 From: Minsoo Choo Date: Thu, 12 Jun 2025 11:44:51 -0400 Subject: [PATCH] Initialize .gitattributes for doc .gitattributes instructs git custom diff handling which helps the readability of git diff in development. This is especially useful for binary files such as images, as it prevents git from printing meaningless diffs. Differential Revision: https://reviews.freebsd.org/D43082 --- .gitattributes | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000000..de6a72abd5 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,9 @@ +*.css diff=css +*.html diff=html +*.pl diff=perl +*.rb diff=ruby + +# Images are binary files +*.ico binary +*.jpg binary +*.png binary