Add .gitattributes to enforce LF line endings for consistent reviewmark fingerprints#62
Merged
Malcolmnixon merged 2 commits intomainfrom Mar 24, 2026
Merged
Conversation
…A256 consistency Co-authored-by: Malcolmnixon <1863707+Malcolmnixon@users.noreply.github.com> Agent-Logs-Url: https://github.com/demaconsulting/TemplateDotNetLibrary/sessions/a6fed87b-1ee6-4dde-ada4-cea06eaa21dc
Copilot
AI
changed the title
[WIP] Add .gitattributes file for line-ending management
Add .gitattributes to enforce LF line endings for consistent reviewmark fingerprints
Mar 23, 2026
Malcolmnixon
approved these changes
Mar 23, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a repo-root .gitattributes to make line ending normalization deterministic across platforms, preventing reviewmark SHA256 fingerprint mismatches between Windows and Unix checkouts.
Changes:
- Enforce LF line endings on checkout for all text files (
* text=auto eol=lf). - Preserve CRLF for Windows batch scripts (
*.bat,*.cmd) to maintain runtime compatibility on Windows.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request
Description
The
reviewmarktool computes SHA256 fingerprints to detect file modifications, but git's platform-dependent line-ending normalization causes fingerprint mismatches across Windows and Unix environments. Adding.gitattributesenforces consistent LF checkout for all text files, with CRLF preserved for Windows batch files that require it.Changes:
.gitattributes— new file at repo root:* text=auto eol=lf— normalizes all text files to LF on checkout, ensuring stable SHA256 fingerprints regardless of developer OS*.bat/*.cmd— explicitly set toeol=crlfsince Windows batch files require CRLF to execute correctlyType of Change
Related Issues
Pre-Submission Checklist
Before submitting this pull request, ensure you have completed the following:
Build and Test
dotnet build --configuration Releasedotnet test --configuration ReleaseCode Quality
dotnet format --verify-no-changesQuality Checks
Please run the following checks before submitting:
./lint.sh(Unix/macOS) orcmd /c lint.bat/./lint.bat(Windows)Testing
Documentation
Additional Notes
Note: developers on Windows may need to re-checkout affected files after this change is merged to have git re-normalize line endings (
git add --renormalize .).📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.