Documentation: fix git-clone manpage not to refer to itself
PATCH 1/1 Documentation: fix git-clone manpage not to refer to itself
--- Documentation/git-clone.txt | 1 + Documentation/urls.txt | 6 ++++++ 2 files changed, 7 insertions(+), 0 deletions(-)
Documentation/git-clone.txt +1 -0
@@ -130,6 +130,7 @@ OPTIONS for "host.xz:foo/.git"). Cloning into an existing directory is not allowed. +:git-clone: 1 include::urls.txt[] Examples
Documentation/urls.txt +6 -0
@@ -36,5 +36,11 @@ To sync with a local directory, you can use: - file:///path/to/repo.git/ =============================================================== +ifndef::git-clone[] They are mostly equivalent, except when cloning. See gitlink:git-clone[1] for details. +endif::git-clone[] + +ifdef::git-clone[] +They are equivalent, except the former implies --local option. +endif::git-clone[]
Signature · 1 line
1.5.3.4
Hi,
Quoted 1 line · Sergei Organov
+ifndef::git-clone[]
It is laudable that you want to fix the _generated_ documentation, but there are two things to keep in mind:
- it does _nothing_ to help readers of the sources, and asciidoc was chosen purposely because the source is human-readable, and
- it makes writing the perl script to do a very tiny subset of asciidoc formatting much harder. We encounter enough problems with the different versions of asciidoc/docbook combinations that I think this perl script would be actually useful.
I know that the user manual uses some advanced features, too, but it did not use ifdef in the main text, for example, let alone nested ifdefs, which your patch would encourage much more than the source before.
Ciao,
Dscho
Quoted 11 lines · Johannes Schindelin
- it makes writing the perl script to do a very tiny subset of asciidoc
formatting much harder. We encounter enough problems with the
different
versions of asciidoc/docbook combinations that I think this perl
script
would be actually useful.I know that the user manual uses some advanced features, too, but it did not use ifdef in the main text, for example, let alone nested ifdefs, which your patch would encourage much more than the source before.
Out of curiosity, have you done any more work on that WIP AsciiDoc replacement since you last wrote to the list about it back in October?
I'm on a new OS install now, so just yesterday and today I had to set up the AsciiDoc/DocBook/xmlto toolchain again, and was reminded of how painful it was. At least on Mac OS X, it requires installing a bunch of dependencies (and specific versions of them otherwise it won't work), hacking Makefiles, installing a bunch of XSL and DTDs, and setting up XML catalogs. Doable but annoying.
Cheers,
Wincent
Hi,
Quoted 7 lines · Wincent Colaiuta
El 19/11/2007, a las 14:35, Johannes Schindelin escribi?:
Quoted 5 lines
- it makes writing the perl script to do a very tiny subset of asciidoc formatting much harder. We encounter enough problems with the different versions of asciidoc/docbook combinations that I think this perl script would be actually useful.
Quoted 7 lines
Quoted 4 lines
I know that the user manual uses some advanced features, too, but it did not use ifdef in the main text, for example, let alone nested ifdefs, which your patch would encourage much more than the source before.
Out of curiosity, have you done any more work on that WIP AsciiDoc replacement since you last wrote to the list about it back in October?
Yes. I rewrote it three times, and the third time is not finished, but slowed down to a glacial pace. You can see the continental shift at my repository on repo.or.cz (it's the "dscho" fork of git.git).
Ciao,
Dscho
Quoted 11 lines · Johannes Schindelin
Hi,
Quoted 1 line · Sergei Organov
+ifndef::git-clone[]
It is laudable that you want to fix the _generated_ documentation, but there are two things to keep in mind:
- it does _nothing_ to help readers of the sources, and asciidoc was chosen purposely because the source is human-readable, and
I wonder if C sources are human-readable? No #ifdefs whatsoever? ;)
And please notice that asciidoc is much worse than C preprocessor in this regard :(
Quoted 9 lines
- it makes writing the perl script to do a very tiny subset of asciidoc formatting much harder. We encounter enough problems with the different versions of asciidoc/docbook combinations that I think this perl script would be actually useful.
I know that the user manual uses some advanced features, too, but it did not use ifdef in the main text, for example, let alone nested ifdefs, which your patch would encourage much more than the source before.
Unfortunately I don't see better solution than using ifdef in this particular case, though I'm open for suggestions.
What I really do care about is the quality of the documentation that user reads. For example, when the first option of git-format-*patch* described in the manual is "-p Generate *patch*...", well..., what does it generate without -p???
Signature · 1 line
Sergei.
Quoted 9 lines · Johannes Schindelin
Quoted 1 line · Sergei Organov
+ifndef::git-clone[]
It is laudable that you want to fix the _generated_ documentation, but there are two things to keep in mind:
- it does _nothing_ to help readers of the sources, and asciidoc was chosen purposely because the source is human-readable, and
IMHO it doesn't make source of documentation less readable.
It has the advantage of not duplicating contents, and being a bit mre readable than writing "for <cmd>" in documentation contents.
Signature · 3 lines
Jakub Narebski Warsaw, Poland ShadeHawk on #git