]> Lady’s Gitweb - HOMEDIR/commitdiff
Support “message type” trailer
authorLady <redacted>
Sun, 5 Apr 2026 19:24:27 +0000 (15:24 -0400)
committerLady <redacted>
Sun, 5 Apr 2026 20:05:58 +0000 (16:05 -0400)
The hope is to use this to enable rich text formatting of commit
  message bodies.

Message-type: text/lesml

.gitconfig

index 2efef28cb77795307eb7d8abb7a89d3a58b2821fcc93d97d12fe03d138b020d7..ec4f303096403e0acdb54914bcb933d5762ba2fbb9eeb2f36cbe1ea8689a7762 100644 (file)
@@ -1,5 +1,5 @@
 #!git-config
-; @(#)🏠📂 HOMEDIR       .gitconfig      2026-04-05T19:22:43Z
+; @(#)🏠📂 HOMEDIR       .gitconfig      2026-04-05T19:24:27Z
 ; SPDX-FileCopyrightText: 2026 Lady <https://www.ladys.computer/about/#lady>
 ; SPDX-License-Identifier: CC0-1.0
 
 
        install-hooks = "!: \"${path_HOMEDIR:=$(realpath ../HOMEDIR)}\" ; for file in \"${path_HOMEDIR}\"/*/githooks/* ; do : ; hookname=\"$(printf '%s\n' \"${file}\" | sed 's/^.*[/]\\([^/]*\\)[.][^/.]*$/\\1/')\" ; ln -fs \"${file}\" \"${GIT_DIR}\"/hooks/\"${hookname}\" ; done"
 
+;; ❦ `mit´
+;;
+;; Shorthand for `git commit´ which also sets a `Message-type´ trailer.
+
+       mit = commit --trailer Message-type:text/lesml
+
 ;; ❦ `rename´
 ;;
 ;; Functions like `git commit --amend --reset-author´, but keeps the
 ;; Only allow fastforward pulls.
 
        ff = only
+
+;; § Trailer settings
+
+;; ❦ Message type trailer settings
+
+[trailer "msgtype"]
+  key = Message-type
+  ifexists = replace
This page took 0.309872 seconds and 4 git commands to generate.