From b69cbc7cc6736910672b4bbddde33e91c14a13c1 Mon Sep 17 00:00:00 2001 From: Olaf Monien Date: Wed, 12 Aug 2026 18:17:30 +0200 Subject: [PATCH] GitAttributes template: add *.groupproj (plus .sql/.ps1/.md), bump to 2.1 *.groupproj was not declared, so Delphi project groups were exempt from EOL normalization: their line endings depended on each developer's local core.autocrlf setting. A .groupproj belongs to the same toolchain as .dproj and should be treated the same way. Also added .sql, .ps1 and .md -- all common in Delphi repositories (migration scripts, build scripts, documentation) and all previously unspecified. Found while auditing a Delphi project against these standards: the project's .groupproj files reported "text: unspecified" from git check-attr, while every .dproj was correctly normalized. Note for existing repositories: run "git add --renormalize ." after updating, as the header already states. Co-Authored-By: Claude Opus 5 (1M context) --- Delphi GitAttributes.txt | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Delphi GitAttributes.txt b/Delphi GitAttributes.txt index ec11018..5137dcf 100644 --- a/Delphi GitAttributes.txt +++ b/Delphi GitAttributes.txt @@ -1,5 +1,5 @@ # Delphi .gitattributes template -# Version: 2.0 (keep in sync with Style Guide headers) +# Version: 2.1 (keep in sync with Style Guide headers) # # Purpose: @@ -22,6 +22,16 @@ *.inc text eol=crlf *.rc text eol=crlf *.dproj text eol=crlf +# Project groups belong to the same toolchain as .dproj. Without this line +# they stay unnormalized and their line endings depend on each developer's +# local core.autocrlf setting. +*.groupproj text eol=crlf + +# Other project text files: CRLF as well, so files edited on Windows do not +# carry mixed line endings into the repository. +*.sql text eol=crlf +*.ps1 text eol=crlf +*.md text eol=crlf # Forms/Frames: pick exactly one mode for each, see section 2) # Default Delphi setting is TEXT for .dfm/.fmx; if your project uses BINARY, switch below.