]> git.ipfire.org Git - thirdparty/git.git/commitdiff
doc: interpret-trailers: document comment line treatment
authorKristoffer Haugsbakk <code@khaugsbakk.name>
Wed, 10 Jun 2026 21:21:29 +0000 (23:21 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 10 Jun 2026 21:39:26 +0000 (14:39 -0700)
Comment lines have always been ignored but this is not documented.

This is mostly for completeness since this is unlikely to catch anyone
by surprise. But we really ought to be reasonably complete here since
it’s the only documentation page that documents trailers.

Signed-off-by: Kristoffer Haugsbakk <code@khaugsbakk.name>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-interpret-trailers.adoc

index 9f4c84abfd9e98e6ef8e256533550872d3beecf8..5cf389595228daf19472aea8b06f50794a262669 100644 (file)
@@ -115,6 +115,16 @@ key: This is a very long value, with spaces and
   newlines in it.
 ------------------------------------------------
 
+OTHER RULES
+-----------
+
+What was covered in the previous section are the rules that are relevant
+for regular use. The following points are included for completeness.
+
+This command ignores comment lines (see `core.commentString` in
+linkgit:git-config[1]). This is for use with the `prepare-commit-msg`
+and `commit-msg` hooks.
+
 OPTIONS
 -------
 `--in-place`::