[PATCH] .gitignore: Keep track of archived files as they are added to a new git repo

Krzysztof Kozlowski krzysztof.kozlowski at linaro.org
Tue Jan 31 11:10:50 PST 2023


On 30/01/2023 10:04, Like Xu wrote:
> From: Like Xu <likexu at tencent.com>
> 
> With thousands of commits going into mainline each development cycle,
> the metadata .git folder size is gradually expanding (1GB+), and for some
> developers (most likely testers) who don't care about the lengthy git-log,
> they just use git-archive to distribute a certain version of code (~210MB)
> and rebuild git repository from anywhere for further code changes, e.g.
> 
>   $ git init && git add . -A
> 
> Then unfortunately, the file tracking metadata from the original git-repo
> using "git add -f" will also be lost, to the point where part of source
> files wrapped by git-archive may be accidentally cleaned up:
> 
>   $ git clean -nxdf
>   Would remove Documentation/devicetree/bindings/.yamllint

https://lore.kernel.org/all/20230127150225.18148-1-andriy.shevchenko@linux.intel.com/

Best regards,
Krzysztof




More information about the linux-arm-kernel mailing list