Subject: [PATCH] .dir-locals.el: Have Magit recognize Change-Id git trailers.

From: Maxim Cournoyer <[email-masked]>
Date: Thu, 13 Feb 2025 16:08:35 +0900

* .dir-locals.el: Register the 'Change-Id' git trailer to the
GIT-COMMIT-TRAILERS Magit variable.

Change-Id: I45deafae39163c63d559e0d50e39ee0691533955
---
 .dir-locals.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/.dir-locals.el b/.dir-locals.el
index 211f5d9afb..d629b51c8a 100644
--- a/.dir-locals.el
+++ b/.dir-locals.el
@@ -18,6 +18,9 @@
      (eval . (setq-local guix-directory
                          (locate-dominating-file default-directory
                                                  ".dir-locals.el")))
+     ;; Magit
+     (eval . (with-eval-after-load 'git-commit
+               (add-to-list 'git-commit-trailers "Change-Id")))
 
      ;; TempEl
      (eval . (with-eval-after-load

base-commit: d994b9b6461318384fdc5820ea9c94dec128f7e9
-- 
2.48.1