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

Re: manpage name conflict

From
Sebastian Kuzminsky <seb@highlab.com>
Date
May 19, 2005, 16:24 UTC
Message-ID
<E1DYnpO-0003cF-I6@highlab.com>
In-Reply-To
<20050519155804.GB4513@pasky.ji.cz>
Petr Baudis <pasky@ucw.cz> wrote:
> Does this manpage actually belong to man1? What about git(7) or
> something? It's not an actual command.
Good point.

Ok, I've appended a patch (against the top of git-pb) that moves the git manpage to man7. It also does two other things:

    * Sort of works around the asciidoc 6.0.3 bug where the manpages all
      get called "git.1".  It just renames them to what they should have
      been called.
    * Fixes a cut-n-paste bug in git-diff-helper.txt that was making
      asciidoc choke.
Show 9 quoted lines
> Not directly related to this problem, but just FYI - git isn't staying
> as part of Cogito forever, actually I think its time in Cogito
> distribution is running over soon (now that I've pushed all the interesting
> local changes to git-pb, consequently to git-linus).
> 
> So you will have to either bundle it manually in the distribution
> packages, or provide a separate git package for cogito to depend on
> (when the unbundling really happens).  Either way, this is git issue,
> not cogito. :-)

Right. Hm. It's no problem to have git be it's own separate package with all the appropriate relationships (cogito Requires git, and git suggests cogito).

But what is going to be the name of the git package? Let's please not make it "git", because that's taken by the GNU Interactive Tools. How about "git-core" or "git-plumbing" or "linus-is-a-git"?

;)
Anyway, here's the documentation patch:
Index: Documentation/Makefile
===================================================================
--- 75b95bec390d6728b9b1b4572056af8cee34ea7d/Documentation/Makefile  (mode:100644)
+++ uncommitted/Documentation/Makefile  (mode:100644)
@@ -1,6 +1,6 @@
 DOC_SRC=$(wildcard git*.txt)
 DOC_HTML=$(patsubst %.txt,%.html,$(DOC_SRC))
-DOC_MAN=$(patsubst %.txt,%.1,$(DOC_SRC))
+DOC_MAN=$(patsubst %.txt,%.1,$(wildcard git-*.txt)) git.7

 all: $(DOC_HTML) $(DOC_MAN)

@@ -13,13 +13,15 @@
        touch $@

 clean:
-       rm -f *.xml *.html *.1
+       rm -f *.xml *.html *.1 *.7

 %.html : %.txt
        asciidoc -b css-embedded -d manpage $<

-%.1 : %.xml
+%.1 %.7 : %.xml
        xmlto man $<
+       # FIXME: this next line works around an output filename bug in asciidoc 6.0.3
+       [ "$@" = "git.7" ] || mv git.1 $@

 %.xml : %.txt
        asciidoc -b docbook -d manpage $<
Index: Documentation/git-diff-helper.txt
===================================================================
--- 75b95bec390d6728b9b1b4572056af8cee34ea7d/Documentation/git-diff-helper.txt  (mode:100644)
+++ uncommitted/Documentation/git-diff-helper.txt  (mode:100644)
@@ -1,5 +1,5 @@
 git-diff-helper(1)
-=======================
+==================
 v0.1, May 2005

 NAME
Index: Documentation/git.txt
===================================================================
--- 75b95bec390d6728b9b1b4572056af8cee34ea7d/Documentation/git.txt  (mode:100644)
+++ uncommitted/Documentation/git.txt  (mode:100644)
@@ -1,4 +1,4 @@
-git(1)
+git(7)
 ======
 v0.1, May 2005
-- 
Sebastian Kuzminsky
"Marie will know I'm headed south, so's to meet me by and by"
-Townes Van Zandt
Previous: Petr BaudisNext: Linus Torvalds
Message 3 of 10 in “manpage name conflict”
  1. Sebastian KuzminskyMay 19, 2005
  2. Petr BaudisMay 19, 2005
  3. Sebastian KuzminskyMay 19, 2005
  4. Linus TorvaldsMay 19, 2005
  5. Linus TorvaldsMay 19, 2005
  6. Sebastian KuzminskyMay 19, 2005
  7. Fix and clean up man page buildingJonas Fonseca, May 20, 2005
  8. Raja R HarinathMay 20, 2005
  9. Jonas FonsecaMay 20, 2005
  10. Sebastian KuzminskyMay 20, 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.