.gitattributes に行末ポリシー (LF 統一) を追加 - #72
Merged
Merged
Conversation
ccbench targets x86_64 Linux only, so all text files should use LF. "* text=auto eol=lf" prevents CRLF from creeping in regardless of the platform a contributor uses.
This file was the only tracked text file with CRLF line endings, as reported by "git ls-files --eol". Renormalized via "git add --renormalize ." after the .gitattributes change.
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.
Closes #61
変更内容
.gitattributesの先頭に* text=auto eol=lfを追加。ccbench は x86_64 Linux 専用なので、contributor の OS に関わらず全テキストファイルを LF に統一し、CRLF の混入を機械的に防ぐ。既存のexport-ignore行はそのまま残してある。git ls-files --eolで CRLF 混入していたinclude/logger.hをgit add --renormalize .で LF 化。.gitattributes追加とは別コミットに分離。CRLF 混入の診断結果
.gitattributes追加前:include/logger.hのみ CRLF 混入していた (i/crlf)。third_party/*は submodule (gitlink) なので対象外。renormalize 後:
include/logger.hの diff はgit diff -wが空 = CRLF→LF のみで内容変更なしを確認済み。Test plan
cmake -B /tmp/build-61 -DCMAKE_BUILD_TYPE=Release .の configure が緑 (Configuring done/Generating done, exit 0)。include/logger.hの正規化 diff が CRLF→LF のみであることをgit diff -wが空であることとfileコマンド (CRLF → ASCII text) で確認。