documentation polish
This large but repetitive patch polishes the docs a bit. It does not touch any files outside the Documentation directory.
It's against cogito-0.11.1, I can split it out into separate patches for git and cogito if people want - let me know.
Here's the change list:
Added a txt target to Documentation/Makefile, to explicitly make cogito.txt and the cg-*.txt files.
Fixed what looked like a typo in Documentation/git-commit-tree.txt
Fixed an incorrect manpage section in Documentation/make-cg-asciidoc
The git and cogito manpages have links to other manpages, and those links are often missing the section, (1) or (7). Fixed that everywhere it seemed appropriate.
Makefile | 4 + git-apply-patch-script.txt | 2 git-cat-file.txt | 2 git-check-files.txt | 4 - git-checkout-cache.txt | 2 git-commit-tree.txt | 6 +- git-convert-cache.txt | 2 git-diff-cache.txt | 2 git-diff-files.txt | 2 git-diff-helper.txt | 4 - git-diff-tree.txt | 2 git-export.txt | 2 git-fsck-cache.txt | 2 git-http-pull.txt | 2 git-init-db.txt | 2 git-local-pull.txt | 2 git-ls-files.txt | 2 git-ls-tree.txt | 2 git-merge-base.txt | 2 git-merge-cache.txt | 2 git-merge-one-file-script.txt | 2 git-mkdelta.txt | 2 git-mktag.txt | 2 git-prune-script.txt | 2 git-pull-script.txt | 2 git-read-tree.txt | 4 - git-resolve-script.txt | 2 git-rev-list.txt | 2 git-rev-tree.txt | 2 git-rpull.txt | 2 git-rpush.txt | 2 git-tag-script.txt | 2 git-tar-tree.txt | 2 git-unpack-file.txt | 2 git-update-cache.txt | 2 git-write-blob.txt | 2 git-write-tree.txt | 2 git.txt | 86 +++++++++++++++++++++--------------------- make-cg-asciidoc | 4 - make-cogito-asciidoc | 19 ++++++--- 40 files changed, 102 insertions(+), 93 deletions(-)
Documentation/Makefile +3 -1
@@ -18,7 +18,9 @@ DOC_MAN7=$(patsubst %.txt,%.7,$(MAN7_TXT # yourself - yes, all 6 characters of it! # -all: html man +all: txt html man + +txt: $(MAN1_TXT) $(MAN7_TXT) html: $(DOC_HTML)
Documentation/git-apply-patch-script.txt +1 -1
@@ -28,5 +28,5 @@ Documentation by David Greaves, Junio C GIT --- -Part of the link:git.html[git] suite +Part of the link:git.html[git(7)] suite
Documentation/git-cat-file.txt +1 -1
@@ -51,5 +51,5 @@ Documentation by David Greaves, Junio C GIT --- -Part of the link:git.html[git] suite +Part of the link:git.html[git(7)] suite
Documentation/git-check-files.txt +2 -2
@@ -33,7 +33,7 @@ up-to-date. See Also -------- -link:git-update-cache.html[git-update-cache] +link:git-update-cache.html[git-update-cache(1)] Author
@@ -46,5 +46,5 @@ Documentation by David Greaves, Junio C GIT --- -Part of the link:git.html[git] suite +Part of the link:git.html[git(7)] suite
Documentation/git-checkout-cache.txt +1 -1
@@ -102,5 +102,5 @@ Documentation by David Greaves, Junio C GIT --- -Part of the link:git.html[git] suite +Part of the link:git.html[git(7)] suite
Documentation/git-commit-tree.txt +3 -3
@@ -9,7 +9,7 @@ git-commit-tree - Creates a new commit o SYNOPSIS -------- -'git-commit-tree' <tree> [-p <parent commit>]\ < changelog +'git-commit-tree' <tree> [-p <parent commit>] < changelog DESCRIPTION -----------
@@ -71,7 +71,7 @@ You don't exist. Go away!:: See Also -------- -link:git-write-tree.html[git-write-tree] +link:git-write-tree.html[git-write-tree(1)] Author
@@ -84,5 +84,5 @@ Documentation by David Greaves, Junio C GIT --- -Part of the link:git.html[git] suite +Part of the link:git.html[git(7)] suite
Documentation/git-convert-cache.txt +1 -1
@@ -26,5 +26,5 @@ Documentation by David Greaves, Junio C GIT --- -Part of the link:git.html[git] suite +Part of the link:git.html[git(7)] suite
Documentation/git-diff-cache.txt +1 -1
@@ -163,5 +163,5 @@ Documentation by David Greaves, Junio C GIT --- -Part of the link:git.html[git] suite +Part of the link:git.html[git(7)] suite
Documentation/git-diff-files.txt +1 -1
@@ -71,5 +71,5 @@ Documentation by David Greaves, Junio C GIT --- -Part of the link:git.html[git] suite +Part of the link:git.html[git(7)] suite
Documentation/git-diff-helper.txt +2 -2
@@ -27,7 +27,7 @@ OPTIONS See Also -------- -The section on generating patches in link:git-diff-cache.html[git-diff-cache] +The section on generating patches in link:git-diff-cache.html[git-diff-cache(1)] Author
@@ -41,5 +41,5 @@ Documentation by David Greaves, Junio C GIT --- -Part of the link:git.html[git] suite +Part of the link:git.html[git(7)] suite
Documentation/git-diff-tree.txt +1 -1
@@ -153,5 +153,5 @@ Documentation by David Greaves, Junio C GIT --- -Part of the link:git.html[git] suite +Part of the link:git.html[git(7)] suite
Documentation/git-export.txt +1 -1
@@ -27,5 +27,5 @@ Documentation by David Greaves, Junio C GIT --- -Part of the link:git.html[git] suite +Part of the link:git.html[git(7)] suite
Documentation/git-fsck-cache.txt +1 -1
@@ -124,5 +124,5 @@ Documentation by David Greaves, Junio C GIT --- -Part of the link:git.html[git] suite +Part of the link:git.html[git(7)] suite
Documentation/git-http-pull.txt +1 -1
@@ -35,5 +35,5 @@ Documentation by David Greaves, Junio C GIT --- -Part of the link:git.html[git] suite +Part of the link:git.html[git(7)] suite
Documentation/git-init-db.txt +1 -1
@@ -36,5 +36,5 @@ Documentation by David Greaves, Junio C GIT --- -Part of the link:git.html[git] suite +Part of the link:git.html[git(7)] suite
Documentation/git-local-pull.txt +1 -1
@@ -36,5 +36,5 @@ Documentation by David Greaves, Junio C GIT --- -Part of the link:git.html[git] suite +Part of the link:git.html[git(7)] suite
Documentation/git-ls-files.txt +1 -1
@@ -104,5 +104,5 @@ Documentation by David Greaves, Junio C GIT --- -Part of the link:git.html[git] suite +Part of the link:git.html[git(7)] suite
Documentation/git-ls-tree.txt +1 -1
@@ -51,5 +51,5 @@ Documentation by David Greaves, Junio C GIT --- -Part of the link:git.html[git] suite +Part of the link:git.html[git(7)] suite
Documentation/git-merge-base.txt +1 -1
@@ -30,5 +30,5 @@ Documentation by David Greaves, Junio C GIT --- -Part of the link:git.html[git] suite +Part of the link:git.html[git(7)] suite
Documentation/git-merge-cache.txt +1 -1
@@ -80,5 +80,5 @@ Documentation by David Greaves, Junio C GIT --- -Part of the link:git.html[git] suite +Part of the link:git.html[git(7)] suite
Documentation/git-merge-one-file-script.txt +1 -1
@@ -26,5 +26,5 @@ Documentation by David Greaves, Junio C GIT --- -Part of the link:git.html[git] suite +Part of the link:git.html[git(7)] suite
Documentation/git-mkdelta.txt +1 -1
@@ -41,5 +41,5 @@ Documentation by David Greaves, Junio C GIT --- -Part of the link:git.html[git] suite +Part of the link:git.html[git(7)] suite
Documentation/git-mktag.txt +1 -1
@@ -44,5 +44,5 @@ Documentation by David Greaves, Junio C GIT --- -Part of the link:git.html[git] suite +Part of the link:git.html[git(7)] suite
Documentation/git-prune-script.txt +1 -1
@@ -28,5 +28,5 @@ Documentation by David Greaves, Junio C GIT --- -Part of the link:git.html[git] suite +Part of the link:git.html[git(7)] suite
Documentation/git-pull-script.txt +1 -1
@@ -27,5 +27,5 @@ Documentation by David Greaves, Junio C GIT --- -Part of the link:git.html[git] suite +Part of the link:git.html[git(7)] suite
Documentation/git-read-tree.txt +2 -2
@@ -135,7 +135,7 @@ and never used. See Also -------- -link:git-write-tree.html[git-write-tree]; link:git-ls-files.html[git-ls-files] +link:git-write-tree.html[git-write-tree(1)]; link:git-ls-files.html[git-ls-files(1)] Author
@@ -148,5 +148,5 @@ Documentation by David Greaves, Junio C GIT --- -Part of the link:git.html[git] suite +Part of the link:git.html[git(7)] suite
Documentation/git-resolve-script.txt +1 -1
@@ -26,5 +26,5 @@ Documentation by David Greaves, Junio C GIT --- -Part of the link:git.html[git] suite +Part of the link:git.html[git(7)] suite
Documentation/git-rev-list.txt +1 -1
@@ -28,5 +28,5 @@ Documentation by David Greaves, Junio C GIT --- -Part of the link:git.html[git] suite +Part of the link:git.html[git(7)] suite
Documentation/git-rev-tree.txt +1 -1
@@ -84,5 +84,5 @@ Documentation by David Greaves, Junio C GIT --- -Part of the link:git.html[git] suite +Part of the link:git.html[git(7)] suite
Documentation/git-rpull.txt +1 -1
@@ -39,5 +39,5 @@ Documentation by David Greaves, Junio C GIT --- -Part of the link:git.html[git] suite +Part of the link:git.html[git(7)] suite
Documentation/git-rpush.txt +1 -1
@@ -26,5 +26,5 @@ Documentation by David Greaves, Junio C GIT --- -Part of the link:git.html[git] suite +Part of the link:git.html[git(7)] suite
Documentation/git-tag-script.txt +1 -1
@@ -28,5 +28,5 @@ Documentation by David Greaves, Junio C GIT --- -Part of the link:git.html[git] suite +Part of the link:git.html[git(7)] suite
Documentation/git-tar-tree.txt +1 -1
@@ -28,5 +28,5 @@ Documentation by David Greaves, Junio C GIT --- -Part of the link:git.html[git] suite +Part of the link:git.html[git(7)] suite
Documentation/git-unpack-file.txt +1 -1
@@ -33,5 +33,5 @@ Documentation by David Greaves, Junio C GIT --- -Part of the link:git.html[git] suite +Part of the link:git.html[git(7)] suite
Documentation/git-update-cache.txt +1 -1
@@ -104,5 +104,5 @@ Documentation by David Greaves, Junio C GIT --- -Part of the link:git.html[git] suite +Part of the link:git.html[git(7)] suite
Documentation/git-write-blob.txt +1 -1
@@ -29,5 +29,5 @@ Documentation by David Greaves, Junio C GIT --- -Part of the link:git.html[git] suite +Part of the link:git.html[git(7)] suite
Documentation/git-write-tree.txt +1 -1
@@ -48,5 +48,5 @@ Documentation by David Greaves, Junio C GIT --- -Part of the link:git.html[git] suite +Part of the link:git.html[git(7)] suite
Documentation/git.txt +43 -43
192 lines not on this page · raw message
Documentation/make-cg-asciidoc +2 -2
@@ -40,7 +40,7 @@ CAPTION=$(echo "$HEADER" | head -n 1 | t # were referenced as "`cg-command`". This way references from cg-* combos in # code listings will be ignored. BODY=$(echo "$HEADER" | sed '0,/^$/d' \ - | sed 's/`\(cg-[a-z-]\+\)`/link:\1.html[\1]/') + | sed 's/`\(cg-[a-z-]\+\)`/link:\1.html[\1(1)]/') DESCRIPTION= OPTIONS=
@@ -109,5 +109,5 @@ $COPYRIGHT SEE ALSO -------- $COMMAND command is part of link:cogito.html[cogito(7)], -a toolkit for managing link:git.html[git(1)] trees. +a toolkit for managing link:git.html[git(7)] trees. __END__
Documentation/make-cogito-asciidoc +13 -6
@@ -11,7 +11,14 @@ HELPER_COMMANDS="$(ls ../cg-X*) $(ls ../ link() { command="$1" - echo "link:$command.html['$command']" + + if [ ! -z "$2" ]; then + section="($2)" + else + section="" + fi + + echo "link:$command.html['$command$section']" } # Print description list entry.
@@ -62,7 +69,7 @@ storage system. Amongst some of the note for branching, tagging and multiple backends for distributing repositories (local files, rsync, HTTP, ssh). -'Cogito' is implemented as a series of 'bash(1)' scripts on top of $(link git) +'Cogito' is implemented as a series of 'bash(1)' scripts on top of $(link git 7) (a content-tracking filesystem) with the goal of providing an interface for working with the 'GIT' database in a manner similar to other SCM tools (like 'CVS', 'BitKeeper' or 'Monotone').
@@ -107,21 +114,21 @@ $(print_command_listing $HELPER_COMMANDS Command Identifiers ------------------- BRANCH_NAME:: - Indicates a branch name added with the $(link cg-branch-add) command. + Indicates a branch name added with the $(link cg-branch-add 1) command. COMMAND:: Indicates a 'Cogito' command. The \`cg-\` prefix is optional. LOCATION:: - Indicates a local file path or a URI. See $(link cg-branch-add) for a + Indicates a local file path or a URI. See $(link cg-branch-add 1) for a list of supported URI schemes. COMMIT_ID, FROM_ID, TO_ID, BASE_COMMIT:: Indicates an ID resolving to a commit. The following expressions can be used interchangably as IDs: - empty string, 'this' or 'HEAD' (current HEAD) - - branch name (as registered with $(link cg-branch-add)) - - tag name (as registered with $(link cg-tag)) + - branch name (as registered with $(link cg-branch-add 1)) + - tag name (as registered with $(link cg-tag 1)) - shortcut object hash (shorted unambiguous hash lead) - commit object hash (as returned by 'commit-id') - tree object hash (as returned by 'tree-id')
Signature · 1 line
Sebastian Kuzminsky
Dear diary, on Fri, Jun 03, 2005 at 09:13:19AM CEST, I got a letter where Sebastian Kuzminsky <[email protected]> told me that...
Quoted 6 lines
This large but repetitive patch polishes the docs a bit. It does not touch any files outside the Documentation directory.
It's against cogito-0.11.1, I can split it out into separate patches for git and cogito if people want - let me know.
That'd be really great. :-)
Thanks,
Signature · 3 lines
Petr "Pasky" Baudis Stuff: http://pasky.or.cz/ C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor