[PR #260] [CLOSED] Add .gitattributes for consistent line endings and diffs #326

Closed
opened 2026-10-26 21:16:17 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/deepseek-ai/DeepGEMM/pull/260
Author: @yurekami
Created: 12/25/2025
Status: ❌ Closed

Base: main ← Head: add-gitattributes


📝 Commits (1)

  • 5fd1bd2 Add .gitattributes for consistent line endings and diffs

📊 Changes

1 file changed (+76 additions, -0 deletions)

View changed files

➕ .gitattributes (+76 -0)

📄 Description

Summary

Add .gitattributes to ensure consistent Git behavior across platforms.

Features:

Line Endings

  • Normalize all text files to LF (Unix-style)
  • Prevents CRLF/LF conflicts when collaborating across Windows/Linux/macOS

Language-Aware Diffs

File Type Diff Driver
Python (*.py, *.pyi) diff=python
C++/CUDA (*.cpp, *.cu, etc.) diff=cpp
Markdown (*.md) diff=markdown
Shell (*.sh) diff=bash

Binary Files

  • Images, archives, compiled files marked as binary
  • Prevents accidental corruption

GitHub Linguist

  • third-party/** marked as vendored (excluded from language stats)
  • stubs/** marked as generated
  • Results in more accurate repository language statistics

Test plan

  • Valid .gitattributes syntax
  • Verify line endings are normalized on checkout
  • Check GitHub language stats exclude vendored code

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/deepseek-ai/DeepGEMM/pull/260 **Author:** [@yurekami](https://github.com/yurekami) **Created:** 12/25/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `add-gitattributes` --- ### 📝 Commits (1) - [`5fd1bd2`](https://github.com/deepseek-ai/DeepGEMM/commit/5fd1bd2e2fdcd8462ef76bed38ff708bd6a5b181) Add .gitattributes for consistent line endings and diffs ### 📊 Changes **1 file changed** (+76 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `.gitattributes` (+76 -0) </details> ### 📄 Description ## Summary Add `.gitattributes` to ensure consistent Git behavior across platforms. ### Features: #### Line Endings - Normalize all text files to LF (Unix-style) - Prevents CRLF/LF conflicts when collaborating across Windows/Linux/macOS #### Language-Aware Diffs | File Type | Diff Driver | |-----------|-------------| | Python (*.py, *.pyi) | `diff=python` | | C++/CUDA (*.cpp, *.cu, etc.) | `diff=cpp` | | Markdown (*.md) | `diff=markdown` | | Shell (*.sh) | `diff=bash` | #### Binary Files - Images, archives, compiled files marked as binary - Prevents accidental corruption #### GitHub Linguist - `third-party/**` marked as vendored (excluded from language stats) - `stubs/**` marked as generated - Results in more accurate repository language statistics ## Test plan - [x] Valid .gitattributes syntax - [ ] Verify line endings are normalized on checkout - [ ] Check GitHub language stats exclude vendored code 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-26 21:16:17 +00:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
deepseek-ai/DeepGEMM#326
No description provided.