Repository navigation
build: .bat / .cmd を改行変換の対象外にする - #93
Merged
Merged
Conversation
gradle-wrapper の更新で CRLF のままコミットされた gradlew.bat が、eol=crlf の LF 正規化と 食い違い常に変更ありと判定されていた。CRLF のまま保存・展開し、索引と作業ツリーを一致させる。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NFmi72mmtFxQy5Ny47anQU
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.
概要
gradlew.batが常に変更ありと判定され、改行だけの diff が出続ける問題を解消する。原因
.gitattributesの*.bat text eol=crlfは「リポジトリ内は LF、作業ツリーは CRLF」の指定gradlew.batを正規化無しにコミットした変更
*.bat/*.cmdを-text(改行変換の対象外)にし、CRLF のまま保存・展開する.editorconfigはすでに*.{bat,cmd}を CRLF にしており、変更は不要確認
git ls-files --eolで 2 つのgradlew.batがi/crlf w/crlf attr/-textになり、変更あり判定が消えた🤖 Generated with Claude Code
https://claude.ai/code/session_01NFmi72mmtFxQy5Ny47anQU
Generated by Claude Code