From 2accc6bcc7ef623a3b5c7e0d024b3408ccc5ca77 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 10 Oct 2026 07:00:49 +0000 Subject: [PATCH] =?UTF-8?q?build:=20.bat=20/=20.cmd=20=E3=82=92=E6=94=B9?= =?UTF-8?q?=E8=A1=8C=E5=A4=89=E6=8F=9B=E3=81=AE=E5=AF=BE=E8=B1=A1=E5=A4=96?= =?UTF-8?q?=E3=81=AB=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gradle-wrapper の更新で CRLF のままコミットされた gradlew.bat が、eol=crlf の LF 正規化と 食い違い常に変更ありと判定されていた。CRLF のまま保存・展開し、索引と作業ツリーを一致させる。 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01NFmi72mmtFxQy5Ny47anQU --- .gitattributes | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitattributes b/.gitattributes index abfa0eab..9fbf9301 100644 --- a/.gitattributes +++ b/.gitattributes @@ -3,9 +3,10 @@ # Windows/macOS/Linux のいずれで clone しても同一の改行コードになる。 * text=auto eol=lf -# Windows 専用スクリプトのみ CRLF を維持する。 -*.bat text eol=crlf -*.cmd text eol=crlf +# Windows 専用スクリプトは改行変換の対象外とし、CRLF のまま保存・展開する。 +# 生成ツールが CRLF で書いた内容を正規化無しにコミットしても、索引と作業ツリーが食い違わない。 +*.bat -text +*.cmd -text # バイナリ(改行変換・テキスト差分の対象外)。 *.jar binary