git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Clean weird documentation for 'git var' and 'git

From
Junio C Hamano <gitster@pobox.com>
Date
May 10, 2012, 18:41 UTC
Message-ID
<7vvck3najc.fsf@alter.siamese.dyndns.org>
In-Reply-To
<CAGK7Mr7rzuPVmGsnx+uhmVgBepAav734uh6hHeqn25BC0_+0Lw@mail.gmail.com>
Philippe Vaucher <philippe.vaucher@gmail.com> writes:
Show 6 quoted lines
>>> What's weird about them? They are real messages issued exactly when they are described to be issued.
>>
>> The problem is surely that an explanatory line is needed to say that these are the diagnostic messages that occur in various cases. Its in 'ident.c'.
>
> I guess I'm just unfamiliar with the "Diagnostics" section of a man
> page.
Ahh, that makes your initial message understandable.

It indeed is not one of the very common and established ones, and it may help to give it a gentler introduction.

 Documentation/git-commit-tree.txt | 4 ++++
 Documentation/git-var.txt         | 4 ++++
 2 files changed, 8 insertions(+)
diff --git a/Documentation/git-commit-tree.txt b/Documentation/git-commit-tree.txt
index cfb9906..868ad09 100644
--- a/Documentation/git-commit-tree.txt
+++ b/Documentation/git-commit-tree.txt
@@ -90,6 +90,10 @@ include::date-formats.txt[]
 
 Diagnostics
 -----------
+
+Some of the common error message the command may give upon errors are
+listed here.
+
 You don't exist. Go away!::
     The passwd(5) gecos field couldn't be read
 Your parents must have hated you!::
diff --git a/Documentation/git-var.txt b/Documentation/git-var.txt
index 988a323..394bfa7 100644
--- a/Documentation/git-var.txt
+++ b/Documentation/git-var.txt
@@ -61,6 +61,10 @@ endif::git-default-pager[]
 
 Diagnostics
 -----------
+
+Some of the common error message the command may give upon errors are
+listed here.
+
 You don't exist. Go away!::
     The passwd(5) gecos field couldn't be read
 Your parents must have hated you!::
Previous: Philippe VaucherNext: Philippe Vaucher
Message 7 of 9 in “Clean weird documentation for 'git var' and 'git”
  1. Clean weird documentation for 'git var' and 'gitPhilippe Vaucher, May 10, 2012
  2. Philippe VaucherMay 10, 2012
  3. Junio C HamanoMay 10, 2012
  4. Philip OakleyMay 10, 2012
  5. René ScharfeMay 10, 2012
  6. Philippe VaucherMay 10, 2012
  7. Junio C HamanoMay 10, 2012
  8. Philippe VaucherMay 10, 2012
  9. Philippe VaucherMay 10, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.