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

Problem with git shortlog documentation

From
Gustaf Hendeby <hendeby@isy.liu.se>
Date
Dec 23, 2007, 14:16 UTC
Message-ID
<476E6DA0.9000908@isy.liu.se>
Hi!

I was just looking through the documentation for git shortlog, and realized there is a problem with FILES section close to the bottom. In the version I built of the man page (asciidoc 8.2.1, yes I used the compatibility define) the filename .mailmap is missing, and the text starts with "If this file exists, ...".

Looking at the webpage version of the man page (http://www.kernel.org/pub/software/scm/git/docs/git-shortlog.html) gives another version, still not what I had expected: "mailmap:: If this file exists, ...", which is not much better.

Unfortunately, I'm completely illiterate in asciidoc/xmlto so I have no idea where to start to look for a fix for this without changes to the text. Hopefully someone else on the list is more knowledgeable. Or is it maybe better to just reformulate this passage slightly to get around the problem? Something like this (would we then like to reindent this? it would make the change look much bigger), which seems to work with my asciidoc version:

diff --git a/Documentation/git-shortlog.txt b/Documentation/git-shortlog.txt
index e14720b..c37ab66 100644
--- a/Documentation/git-shortlog.txt
+++ b/Documentation/git-shortlog.txt
@@ -38,8 +38,7 @@ OPTIONS
  FILES
  -----

-.mailmap::
-       If this file exists, it will be used for mapping author email
+       If the file .mailmap exists, it will be used for mapping author email
         addresses to a real author name. One mapping per line, first
         the author name followed by the email address enclosed by
         '<' and '>'. Use hash '#' for comments. Example:

/Gustaf
Next: Jeff King
Message 1 of 5 in “Problem with git shortlog documentation”
  1. Gustaf HendebyDec 23, 2007
  2. Jeff KingDec 23, 2007
  3. Junio C HamanoDec 23, 2007
  4. Fix for missing line in man page rendered for git shortlogGustaf Hendeby, Dec 23, 2007
  5. Jeff KingDec 23, 2007

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.