From 85968c352733a20817947d0b7d4080885bdf12ab Mon Sep 17 00:00:00 2001 From: Oleg Iarygin Date: Fri, 10 Dec 2021 19:13:05 +0300 Subject: [PATCH 1/2] Mark configure file as generated in .gitattributes configure is regenerated from configure.ac using a custom container with appropriate version of tools (quay.io/tiran/cpython_autoconf by Christian Heimes). As a result, configure falls into the same category as files generated by Argument Clinic, Freeze and Parser/asdl_c.py. Due to size and churn of these artifacts, they are marked in .gitattributes as generated so GitHub Pull Request Diff Viewer collapses them into a short notification. This commit does the same for configure. Actually, configure diff is so large that sometimes it crosses a threshold and GitHub collapses it by force with "Large diffs are not rendered by default" or even "xxx additions, yyy deletions not shown because the diff is too large. Please use a local Git client to view these changes". See GH-29756 as an extreme example and for an average. --- .gitattributes | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitattributes b/.gitattributes index 3363ea8e4e7444..775ce0d2ce1705 100644 --- a/.gitattributes +++ b/.gitattributes @@ -60,6 +60,7 @@ Include/token.h linguist-generated=true Lib/token.py linguist-generated=true Parser/token.c linguist-generated=true Programs/test_frozenmain.h linguist-generated=true +configure linguist-generated=true # Language aware diff headers # https://tekin.co.uk/2020/10/better-git-diff-output-for-ruby-python-elixir-and-more From 2ade65042ebd0448a0b842571309bc2b2ca19343 Mon Sep 17 00:00:00 2001 From: Oleg Iarygin Date: Fri, 10 Dec 2021 19:54:10 +0300 Subject: [PATCH 2/2] Address review: mark aclocal.m4 as generated --- .gitattributes | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitattributes b/.gitattributes index 775ce0d2ce1705..1005d336156297 100644 --- a/.gitattributes +++ b/.gitattributes @@ -61,6 +61,7 @@ Lib/token.py linguist-generated=true Parser/token.c linguist-generated=true Programs/test_frozenmain.h linguist-generated=true configure linguist-generated=true +aclocal.m4 linguist-generated=true # Language aware diff headers # https://tekin.co.uk/2020/10/better-git-diff-output-for-ruby-python-elixir-and-more