From 75109c370d441e178726e1066a134056dd45ee68 Mon Sep 17 00:00:00 2001 From: umsangdon Date: Tue, 17 Nov 2026 22:40:49 +0900 Subject: [PATCH] =?UTF-8?q?fix(tools):=20=EA=B4=80=EB=A0=A8=20=EC=8B=9C?= =?UTF-8?q?=ED=97=98=20=EC=B0=BE=EA=B8=B0=20=E2=80=94=20=EB=82=B4=20?= =?UTF-8?q?=EC=BB=A4=EB=B0=8B=EB=A7=8C=20=EB=B4=84(=EB=B0=9B=EA=B8=B0?= =?UTF-8?q?=EB=A1=9C=20=EB=93=A4=EC=96=B4=EC=98=A8=20=EB=82=A8=EC=9D=98=20?= =?UTF-8?q?=EC=BB=A4=EB=B0=8B=20=EB=BA=8C)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 받기 합침으로 들어온 남의 파일까지 고친 파일로 잡혀 시험 수백 개가 걸리던 것 고침 Co-Authored-By: Claude --- tools/related_tests.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tools/related_tests.py b/tools/related_tests.py index 0987c6833..9ef4c751f 100644 --- a/tools/related_tests.py +++ b/tools/related_tests.py @@ -21,9 +21,14 @@ def _git(*args: str) -> list[str]: def changed() -> list[str]: - """작업 트리 고침 + 추적 안 된 새 파일 + 메인(origin/main_laptop_1)에 없는 내 커밋""" + """작업 트리 고침 + 추적 안 된 새 파일 + 메인(origin/main_laptop_1)에 없는 내 커밋 + + 내 커밋 = 첫 부모 줄의 합침 아닌 커밋만 — 받기로 들어온 남의 커밋(합침 커밋 안쪽)은 뺌 + (넣으면 남이 고친 파일의 시험 수백 개가 같이 걸림). + """ got = _git("diff", "--name-only", "HEAD") + _git("ls-files", "--others", "--exclude-standard") - got += _git("diff", "--name-only", "origin/main_laptop_1...HEAD") + mine = ("log", "--no-merges", "--first-parent", "--name-only", "--format=") + got += _git("-c", "core.quotepath=false", *mine, "origin/main_laptop_1..HEAD") return sorted(set(got))