줄바꿈 정규화로 인한 대규모 가짜 diff 방지 - #52
Merged
Merged
Conversation
decompiled/Launcher.decompiled.cs는 CRLF·CR·LF가 섞여 있어(CR CR LF 3550개, bare LF 417개) 편집 도구나 Git이 줄바꿈을 정규화하면 실제 변경이 몇 줄이어도 파일 전체가 바뀐 것처럼 보입니다. 이번 작업 중 실제로 한 번 발생했습니다. 저장소에 .gitattributes가 없어 다른 환경의 core.autocrlf 설정에 따라 체크아웃 결과가 달라질 수 있었습니다. 모든 파일에 -text를 지정해 Git이 줄바꿈을 건드리지 않도록 하고, 바이너리 자산은 diff 대상에서 제외합니다. 기존 파일은 재정규화되지 않는 것을 확인했습니다. 제품 코드 변경이 없어 버전은 올리지 않습니다. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01A4KU6BZL5oWTjH2eDB18Yu
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.
저장소 위생 개선입니다. 제품 코드 변경이 없어 버전은 올리지 않았고 릴리스도 하지 않습니다.
문제
decompiled/Launcher.decompiled.cs는 줄바꿈이 섞여 있습니다.편집 도구나 Git이 줄바꿈을 정규화하면 실제 변경이 몇 줄이어도 파일 전체(약 4000줄)가 바뀐 것처럼 보입니다. 이번 작업 중 실제로 한 번 발생해서 되돌리고 바이트 단위로 다시 적용한 적이 있습니다.
저장소에
.gitattributes가 없어서 다른 환경의core.autocrlf설정에 따라 체크아웃 결과가 달라질 수 있었습니다.조치
모든 파일에
-text를 지정해 Git이 줄바꿈을 건드리지 않게 하고, 바이너리 자산은 diff 대상에서 제외했습니다.기존 파일이 재정규화되지 않는 것을 확인했습니다 —
.gitattributes추가 후 다른 파일에 변경이 잡히지 않습니다.Generated by Claude Code