jj: Add git-pkgs diff tool
Assisted-by: Claude Opus 4.5 via Claude Code
change oowwwzkttlvqlsxrmkqzrymoonxxryrn
commit dd7770b6d819f773bb31625fd91cd2262b296974
author Alpha Chen <alpha@kejadlen.dev>
date
parent mlzzurzx
diff --git a/.config/jj/config.toml b/.config/jj/config.toml
index 7ca6e58f..57bc48c3 100644
--- a/.config/jj/config.toml
+++ b/.config/jj/config.toml
@@ -26,6 +26,13 @@ edit-args = ["-c", '''
 merge-args = ["-c", "echo gitpatch cannot be used as a diff tool"]
 diff-args = ["-c", "echo gitpatch cannot be used as a diff tool"]
 
+# https://github.com/bryceberger/config/commit/9a3185b6b3a7a81246f84325448e878a5a8281f4
+[merge-tools.git-pkgs]
+program = "git-pkgs"
+diff-args = ["diff-file", "--color=always", "$left", "$right"]
+diff-invocation-mode = "file-by-file"
+edit-args = []
+
 [diff.color-words]
 max-inline-alternation = 0