git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] docs: clarify meaning of core.commentString=auto
@ 2025-03-15 14:09 Oswald Buddenhagen
  2025-03-17 20:17 ` Junio C Hamano
  0 siblings, 1 reply; 8+ messages in thread
From: Oswald Buddenhagen @ 2025-03-15 14:09 UTC (permalink / raw)
  To: git; +Cc: Nguyễn Thái Ngọc Duy

I had to read the source to make sense of the feature, which is clearly
not an acceptable state. Make the docu more specific and less
misleading.

Signed-off-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>

---

Cc: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>

given the rather crippling limitations of this feature, does anyone
actually use it?
---
 Documentation/config/core.adoc | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/Documentation/config/core.adoc b/Documentation/config/core.adoc
index 8f6d8e7754..b470da72ba 100644
--- a/Documentation/config/core.adoc
+++ b/Documentation/config/core.adoc
@@ -526,8 +526,11 @@ core.commentString::
 	commented, and removes them after the editor returns
 	(default '#').
 +
-If set to "auto", `git-commit` would select a character that is not
-the beginning character of any line in existing commit messages.
+If set to "auto", `git-commit` will select the first character
+from the set "#;@!$%^&|:" that does not appear at the beginning
+of any line in the prepared commit message prior to editing.
+Note that this makes it impossible to include comments in the
+prepare-commit-msg hook's output or the commit message template.
 +
 Note that these two variables are aliases of each other, and in modern
 versions of Git you are free to use a string (e.g., `//` or `⁑⁕⁑`) with
-- 
2.49.0.416.g2f302f2ef0.dirty


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-03-21 10:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-15 14:09 [PATCH] docs: clarify meaning of core.commentString=auto Oswald Buddenhagen
2025-03-17 20:17 ` Junio C Hamano
2025-03-17 21:34   ` Taylor Blau
2025-03-18 11:43   ` Oswald Buddenhagen
2025-03-18 17:15     ` Junio C Hamano
2025-03-19 18:20       ` Oswald Buddenhagen
2025-03-20 10:21         ` Phillip Wood
2025-03-21 10:28           ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).