chore: improve .gitattributes for cross-platform consistency#2523
chore: improve .gitattributes for cross-platform consistency#2523TranscendenceLiang wants to merge 1 commit intoagentscope-ai:mainfrom
Conversation
|
Hi @TranscendenceLiang, this is your 4th Pull Request. 🙌 Join Developer CommunityThanks so much for your contribution! We'd love to invite you to join the official CoPaw developer group! You can find the Discord and DingTalk group links under the "Developer Community" section on our docs page: We truly appreciate your enthusiasm—and look forward to your future contributions! 😊 We'll review your PR soon. |
There was a problem hiding this comment.
Code Review
This pull request updates the .gitattributes file to include comprehensive rules for line endings, binary file definitions, and exclusions for generated directories. The changes establish LF as the standard for shell scripts, Python, and web-related files while maintaining CRLF for Windows batch files. A review comment suggests further extending these rules to include other common text-based formats like JSON, Markdown, and YAML to ensure consistent behavior across all developer environments.
39063ce to
2dd08a8
Compare
- Add text=auto for automatic text file detection - Set explicit line endings for Python (LF), Shell (LF), Batch (CRLF) - Mark binary files (images, fonts, archives) to prevent corruption - Exclude third-party directories from diff computation
2dd08a8 to
b719dac
Compare
Description
[Describe what this PR does and why]
Related Issue: Fixes #(issue_number) or Relates to #(issue_number)
Security Considerations: [If applicable, e.g. channel auth, env/config handling]
Type of Change
Component(s) Affected
Checklist
pre-commit run --all-fileslocally and it passespytestor as relevant) and they passTesting
[How to test these changes]
Local Verification Evidence
Additional Notes
[Optional: any other context]