From 483e2c5f5881bf20359fdaacf1f337b4df6f3288 Mon Sep 17 00:00:00 2001 From: Rebecca Cran Date: Thu, 11 May 2023 10:31:52 -0600 Subject: [PATCH] Mark .pyc, .pyo and .pyd files as binary in .gitattributes Python files .pyc, .pyo and .pyd types are binary. Update .gitattributes, copying from https://github.com/alexkaratarakis/gitattributes/blob/master/Python.gitattributes . Signed-off-by: Rebecca Cran --- .gitattributes | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.gitattributes b/.gitattributes index ba67b6cd..835129ae 100644 --- a/.gitattributes +++ b/.gitattributes @@ -51,9 +51,12 @@ *.pxd text diff=python *.py text diff=python *.py3 text diff=python -*.pyc text diff=python -*.pyd text diff=python -*.pyo text diff=python *.pyw text diff=python *.pyx text diff=python -*.pyz text diff=python \ No newline at end of file +*.pyz text diff=python + +# Binary files +#============= +*.pyc binary export-ignore +*.pyo binary export-ignore +*.pyd binary