From 0c79c492e232078b9bc0f263186dd9a12423089f Mon Sep 17 00:00:00 2001 From: Jonas Hermsmeier Date: Fri, 28 Apr 2017 17:46:41 +0200 Subject: [PATCH] chore(gitattributes): Add "hex" diff tag to binary files (#1367) This adds a `diff` tag to binary files in `.gitattributes`, enabling git to use an external tool to generate diffable output for binary files by adding a handler to the local or global git config, i.e: ``` [diff "hex"] textconv = hexdump binary = true ``` Change-Type: patch --- .gitattributes | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.gitattributes b/.gitattributes index 24b437fe..6b14c57f 100644 --- a/.gitattributes +++ b/.gitattributes @@ -22,14 +22,14 @@ Makefile text *.yml text # Binary files (no line-ending conversions) -*.bz2 binary -*.gz binary -*.icns binary -*.ico binary -*.img binary -*.iso binary -*.png binary -*.xz binary -*.zip binary -*.dmg binary -*.rpi-sdcard binary +*.bz2 binary diff=hex +*.gz binary diff=hex +*.icns binary diff=hex +*.ico binary diff=hex +*.img binary diff=hex +*.iso binary diff=hex +*.png binary diff=hex +*.xz binary diff=hex +*.zip binary diff=hex +*.dmg binary diff=hex +*.rpi-sdcard binary diff=hex