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

[ANNOUNCE] GIT preformatted documentation available.

From
Junio C Hamano <junkio@cox.net>
Date
Dec 27, 2005, 08:49 UTC
Message-ID
<7vu0cuc4c2.fsf@assigned-by-dhcp.cox.net>

I was asked to provide pre-formatted man pages (and perhaps html pages), since the time of kernel developers are better spent on what they do best, rather than preparing the xmlto toolchain.

I was planning to do a tarball every time I do a "release", but that would mean it is no better than the current way --- you could extract manpages out of rpm anyway.

So instead, I'll do independent branches "html" and "man" in git.git repository to keep the preformatted documentation.

	$ mkdir git.man ; cd git.man
	$ git init-db
        $ ID=$(git fetch-pack -k git://git.kernel.org/pub/scm/git/git man)
        $ expr "$ID" : '\(.*\) .*' >.git/refs/heads/master
        $ cat .git/refs/heads/master >.git/refs/heads/origin
	$ git checkout; /bin/ls -aF
	./  ../  .git/	man1/  man7/
        $ echo >.git/remotes/origin <<\EOF
        URL: git://git.kernel.org/pub/scm/git/git
        Pull: man:origin
        EOF

Would set you up, and you can to keep them up-to-date, and install them like so:

	$ cd git.man
	$ git pull
	$ cp -a man1 man7 /usr/local/man/

The "html" branch is similar; it is a copy of what is shown at http://www.kernel.org/pub/software/scm/git/docs/.

This means if you clone from git.git repository, you would end up with something like this in .git/remotes/origin file:

	URL: git://git.kernel.org/pub/scm/git/git.git
        Pull: master:origin
        Pull: todo:todo
        Pull: html:html
        Pull: man:man
        Pull: pu:pu
        Pull: maint:maint

Typically, for the repository to track GIT itself, you would want to trim them like this:

	URL: git://git.kernel.org/pub/scm/git/git.git
        Pull: master:origin
        Pull: maint:maint
        Pull: +pu:pu
Next: Adrien Beau
Message 1 of 2 in “[ANNOUNCE] GIT preformatted documentation available.”
  1. Junio C HamanoDec 27, 2005
  2. Adrien BeauDec 28, 2005

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.