From 89a8221470813eb519927e348a0a7becf432530f Mon Sep 17 00:00:00 2001 From: ncaq Date: Mon, 25 May 2026 11:47:02 +0900 Subject: [PATCH] =?UTF-8?q?fix(git):=20`commit.verbose`=E3=82=AA=E3=83=97?= =?UTF-8?q?=E3=82=B7=E3=83=A7=E3=83=B3=E3=82=92=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `verbose`で変更セットをバッファに入れておくことは、 GitHub Copilot Completeの精度を向上させます。 しかし現在commitlintがdiff部分に反応して行の長さをチェックしてしまうという問題と衝突します。 [{body,footer}-max-line-length may fail when git commit --verbose · Issue #437 · conventional-changelog/commitlint](https://github.com/conventional-changelog/commitlint/issues/437) 少なくとも解決策の、 [fix(read): strip verbose diff from commit message by enaktes9-hub · Pull Request #4770 · conventional-changelog/commitlint](https://github.com/conventional-changelog/commitlint/pull/4770) がマージされるまでは、 `verbose`オプションを削除します。 --- home/core/git.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/home/core/git.nix b/home/core/git.nix index c8257a50..8554f38f 100644 --- a/home/core/git.nix +++ b/home/core/git.nix @@ -29,7 +29,6 @@ in quotePath = false; symlinks = true; }; - commit.verbose = true; diff.algorithm = "histogram"; fetch.prune = true; init.defaultBranch = "master";