Skip to content

Commit

Permalink
Documentation: use [verse] for SYNOPSIS sections
Browse files Browse the repository at this point in the history
The SYNOPSIS sections of most commands that span several lines already
use [verse] to retain line breaks. Most commands that don't span
several lines seem not to use [verse]. In the HTML output, [verse]
does not only preserve line breaks, but also makes the section
indented, which causes a slight inconsistency between commands that
use [verse] and those that don't. Use [verse] in all SYNOPSIS sections
for consistency.

Also remove the blank lines from git-fetch.txt and git-rebase.txt to
align with the other man pages. In the case of git-rebase.txt, which
already uses [verse], the blank line makes the [verse] not apply to
the last line, so removing the blank line also makes the formatting
within the document more consistent.

While at it, add single quotes to 'git cvsimport' for consistency with
other commands.

Signed-off-by: Martin von Zweigbergk <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
Martin von Zweigbergk authored and gitster committed Jul 6, 2011
1 parent f696543 commit 7791a1d
Show file tree
Hide file tree
Showing 93 changed files with 92 additions and 6 deletions.
1 change: 1 addition & 0 deletions Documentation/git-annotate.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ git-annotate - Annotate file lines with commit information

SYNOPSIS
--------
[verse]
'git annotate' [options] file [revision]

DESCRIPTION
Expand Down
1 change: 1 addition & 0 deletions Documentation/git-bisect.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ git-bisect - Find by binary search the change that introduced a bug

SYNOPSIS
--------
[verse]
'git bisect' <subcommand> <options>

DESCRIPTION
Expand Down
1 change: 1 addition & 0 deletions Documentation/git-cherry-pick.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ git-cherry-pick - Apply the changes introduced by some existing commits

SYNOPSIS
--------
[verse]
'git cherry-pick' [--edit] [-n] [-m parent-number] [-s] [-x] [--ff] <commit>...

DESCRIPTION
Expand Down
1 change: 1 addition & 0 deletions Documentation/git-cherry.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ git-cherry - Find commits not merged upstream

SYNOPSIS
--------
[verse]
'git cherry' [-v] [<upstream> [<head> [<limit>]]]

DESCRIPTION
Expand Down
1 change: 1 addition & 0 deletions Documentation/git-citool.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ git-citool - Graphical alternative to git-commit

SYNOPSIS
--------
[verse]
'git citool'

DESCRIPTION
Expand Down
1 change: 1 addition & 0 deletions Documentation/git-commit-tree.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ git-commit-tree - Create a new commit object

SYNOPSIS
--------
[verse]
'git commit-tree' <tree> [(-p <parent commit>)...] < changelog

DESCRIPTION
Expand Down
1 change: 1 addition & 0 deletions Documentation/git-count-objects.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ git-count-objects - Count unpacked number of objects and their disk consumption

SYNOPSIS
--------
[verse]
'git count-objects' [-v]

DESCRIPTION
Expand Down
1 change: 1 addition & 0 deletions Documentation/git-cvsexportcommit.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ git-cvsexportcommit - Export a single commit to a CVS checkout

SYNOPSIS
--------
[verse]
'git cvsexportcommit' [-h] [-u] [-v] [-c] [-P] [-p] [-a] [-d cvsroot]
[-w cvsworkdir] [-W] [-f] [-m msgprefix] [PARENTCOMMIT] COMMITID

Expand Down
1 change: 1 addition & 0 deletions Documentation/git-diff-files.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ git-diff-files - Compares files in the working tree and the index

SYNOPSIS
--------
[verse]
'git diff-files' [-q] [-0|-1|-2|-3|-c|--cc] [<common diff options>] [<path>...]

DESCRIPTION
Expand Down
1 change: 1 addition & 0 deletions Documentation/git-diff-index.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ git-diff-index - Compares content and mode of blobs between the index and reposi

SYNOPSIS
--------
[verse]
'git diff-index' [-m] [--cached] [<common diff options>] <tree-ish> [<path>...]

DESCRIPTION
Expand Down
1 change: 1 addition & 0 deletions Documentation/git-difftool.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ git-difftool - Show changes using common diff tools

SYNOPSIS
--------
[verse]
'git difftool' [<options>] [<commit> [<commit>]] [--] [<path>...]

DESCRIPTION
Expand Down
1 change: 1 addition & 0 deletions Documentation/git-fast-export.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ git-fast-export - Git data exporter

SYNOPSIS
--------
[verse]
'git fast-export [options]' | 'git fast-import'

DESCRIPTION
Expand Down
1 change: 1 addition & 0 deletions Documentation/git-fast-import.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ git-fast-import - Backend for fast Git data importers

SYNOPSIS
--------
[verse]
frontend | 'git fast-import' [options]

DESCRIPTION
Expand Down
1 change: 1 addition & 0 deletions Documentation/git-fetch-pack.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ git-fetch-pack - Receive missing objects from another repository

SYNOPSIS
--------
[verse]
'git fetch-pack' [--all] [--quiet|-q] [--keep|-k] [--thin] [--include-tag] [--upload-pack=<git-upload-pack>] [--depth=<n>] [--no-progress] [-v] [<host>:]<directory> [<refs>...]

DESCRIPTION
Expand Down
4 changes: 1 addition & 3 deletions Documentation/git-fetch.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@ git-fetch - Download objects and refs from another repository

SYNOPSIS
--------
[verse]
'git fetch' [<options>] [<repository> [<refspec>...]]

'git fetch' [<options>] <group>

'git fetch' --multiple [<options>] [(<repository> | <group>)...]

'git fetch' --all [<options>]


Expand Down
1 change: 1 addition & 0 deletions Documentation/git-fsck-objects.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ git-fsck-objects - Verifies the connectivity and validity of the objects in the

SYNOPSIS
--------
[verse]
'git fsck-objects' ...

DESCRIPTION
Expand Down
1 change: 1 addition & 0 deletions Documentation/git-gc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ git-gc - Cleanup unnecessary files and optimize the local repository

SYNOPSIS
--------
[verse]
'git gc' [--aggressive] [--auto] [--quiet] [--prune=<date> | --no-prune]

DESCRIPTION
Expand Down
1 change: 1 addition & 0 deletions Documentation/git-get-tar-commit-id.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ git-get-tar-commit-id - Extract commit ID from an archive created using git-arch

SYNOPSIS
--------
[verse]
'git get-tar-commit-id' < <tarfile>


Expand Down
1 change: 1 addition & 0 deletions Documentation/git-gui.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ git-gui - A portable graphical interface to Git

SYNOPSIS
--------
[verse]
'git gui' [<command>] [arguments]

DESCRIPTION
Expand Down
1 change: 1 addition & 0 deletions Documentation/git-help.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ git-help - display help information about git

SYNOPSIS
--------
[verse]
'git help' [-a|--all|-i|--info|-m|--man|-w|--web] [COMMAND]

DESCRIPTION
Expand Down
1 change: 1 addition & 0 deletions Documentation/git-http-fetch.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ git-http-fetch - Download from a remote git repository via HTTP

SYNOPSIS
--------
[verse]
'git http-fetch' [-c] [-t] [-a] [-d] [-v] [-w filename] [--recover] [--stdin] <commit> <url>

DESCRIPTION
Expand Down
1 change: 1 addition & 0 deletions Documentation/git-http-push.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ git-http-push - Push objects over HTTP/DAV to another repository

SYNOPSIS
--------
[verse]
'git http-push' [--all] [--dry-run] [--force] [--verbose] <url> <ref> [<ref>...]

DESCRIPTION
Expand Down
1 change: 1 addition & 0 deletions Documentation/git-imap-send.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ git-imap-send - Send a collection of patches from stdin to an IMAP folder

SYNOPSIS
--------
[verse]
'git imap-send'


Expand Down
1 change: 1 addition & 0 deletions Documentation/git-init-db.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ git-init-db - Creates an empty git repository

SYNOPSIS
--------
[verse]
'git init-db' [-q | --quiet] [--bare] [--template=<template_directory>] [--separate-git-dir <git dir>] [--shared[=<permissions>]]


Expand Down
1 change: 1 addition & 0 deletions Documentation/git-init.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ git-init - Create an empty git repository or reinitialize an existing one

SYNOPSIS
--------
[verse]
'git init' [-q | --quiet] [--bare] [--template=<template_directory>]
[--separate-git-dir <git dir>]
[--shared[=<permissions>]] [directory]
Expand Down
1 change: 1 addition & 0 deletions Documentation/git-log.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ git-log - Show commit logs

SYNOPSIS
--------
[verse]
'git log' [<options>] [<since>..<until>] [[\--] <path>...]

DESCRIPTION
Expand Down
1 change: 1 addition & 0 deletions Documentation/git-lost-found.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ git-lost-found - Recover lost refs that luckily have not yet been pruned

SYNOPSIS
--------
[verse]
'git lost-found'

DESCRIPTION
Expand Down
1 change: 1 addition & 0 deletions Documentation/git-mailinfo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ git-mailinfo - Extracts patch and authorship from a single e-mail message

SYNOPSIS
--------
[verse]
'git mailinfo' [-k|-b] [-u | --encoding=<encoding> | -n] [--scissors] <msg> <patch>


Expand Down
1 change: 1 addition & 0 deletions Documentation/git-mailsplit.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ git-mailsplit - Simple UNIX mbox splitter program

SYNOPSIS
--------
[verse]
'git mailsplit' [-b] [-f<nn>] [-d<prec>] [--keep-cr] -o<directory> [--] [(<mbox>|<Maildir>)...]

DESCRIPTION
Expand Down
1 change: 1 addition & 0 deletions Documentation/git-merge-index.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ git-merge-index - Run a merge for files needing merging

SYNOPSIS
--------
[verse]
'git merge-index' [-o] [-q] <merge-program> (-a | [--] <file>*)

DESCRIPTION
Expand Down
1 change: 1 addition & 0 deletions Documentation/git-merge-one-file.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ git-merge-one-file - The standard helper program to use with git-merge-index

SYNOPSIS
--------
[verse]
'git merge-one-file'

DESCRIPTION
Expand Down
1 change: 1 addition & 0 deletions Documentation/git-merge-tree.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ git-merge-tree - Show three-way merge without touching index

SYNOPSIS
--------
[verse]
'git merge-tree' <base-tree> <branch1> <branch2>

DESCRIPTION
Expand Down
1 change: 1 addition & 0 deletions Documentation/git-mergetool--lib.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ git-mergetool--lib - Common git merge tool shell scriptlets

SYNOPSIS
--------
[verse]
'TOOL_MODE=(diff|merge) . "$(git --exec-path)/git-mergetool--lib"'

DESCRIPTION
Expand Down
1 change: 1 addition & 0 deletions Documentation/git-mergetool.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ git-mergetool - Run merge conflict resolution tools to resolve merge conflicts

SYNOPSIS
--------
[verse]
'git mergetool' [--tool=<tool>] [-y|--no-prompt|--prompt] [<file>...]

DESCRIPTION
Expand Down
1 change: 1 addition & 0 deletions Documentation/git-mktag.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ git-mktag - Creates a tag object

SYNOPSIS
--------
[verse]
'git mktag' < signature_file

DESCRIPTION
Expand Down
1 change: 1 addition & 0 deletions Documentation/git-mktree.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ git-mktree - Build a tree-object from ls-tree formatted text

SYNOPSIS
--------
[verse]
'git mktree' [-z] [--missing] [--batch]

DESCRIPTION
Expand Down
1 change: 1 addition & 0 deletions Documentation/git-mv.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ git-mv - Move or rename a file, a directory, or a symlink

SYNOPSIS
--------
[verse]
'git mv' <options>... <args>...

DESCRIPTION
Expand Down
1 change: 1 addition & 0 deletions Documentation/git-pack-redundant.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ git-pack-redundant - Find redundant pack files

SYNOPSIS
--------
[verse]
'git pack-redundant' [ --verbose ] [ --alt-odb ] < --all | .pack filename ... >

DESCRIPTION
Expand Down
1 change: 1 addition & 0 deletions Documentation/git-pack-refs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ git-pack-refs - Pack heads and tags for efficient repository access

SYNOPSIS
--------
[verse]
'git pack-refs' [--all] [--no-prune]

DESCRIPTION
Expand Down
1 change: 1 addition & 0 deletions Documentation/git-parse-remote.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ git-parse-remote - Routines to help parsing remote repository access parameters

SYNOPSIS
--------
[verse]
'. "$(git --exec-path)/git-parse-remote"'

DESCRIPTION
Expand Down
1 change: 1 addition & 0 deletions Documentation/git-patch-id.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ git-patch-id - Compute unique ID for a patch

SYNOPSIS
--------
[verse]
'git patch-id' < <patch>

DESCRIPTION
Expand Down
1 change: 1 addition & 0 deletions Documentation/git-peek-remote.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ git-peek-remote - List the references in a remote repository

SYNOPSIS
--------
[verse]
'git peek-remote' [--upload-pack=<git-upload-pack>] [<host>:]<directory>

DESCRIPTION
Expand Down
1 change: 1 addition & 0 deletions Documentation/git-prune-packed.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ git-prune-packed - Remove extra objects that are already in pack files

SYNOPSIS
--------
[verse]
'git prune-packed' [-n|--dry-run] [-q|--quiet]


Expand Down
1 change: 1 addition & 0 deletions Documentation/git-prune.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ git-prune - Prune all unreachable objects from the object database

SYNOPSIS
--------
[verse]
'git prune' [-n] [-v] [--expire <expire>] [--] [<head>...]

DESCRIPTION
Expand Down
1 change: 1 addition & 0 deletions Documentation/git-pull.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ git-pull - Fetch from and merge with another repository or a local branch

SYNOPSIS
--------
[verse]
'git pull' [options] [<repository> [<refspec>...]]


Expand Down
1 change: 1 addition & 0 deletions Documentation/git-read-tree.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ git-read-tree - Reads tree information into the index

SYNOPSIS
--------
[verse]
'git read-tree' [[-m [--trivial] [--aggressive] | --reset | --prefix=<prefix>]
[-u [--exclude-per-directory=<gitignore>] | -i]]
[--index-output=<file>] [--no-sparse-checkout]
Expand Down
1 change: 0 additions & 1 deletion Documentation/git-rebase.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ SYNOPSIS
[<upstream>] [<branch>]
'git rebase' [-i | --interactive] [options] --onto <newbase>
--root [<branch>]

'git rebase' --continue | --skip | --abort

DESCRIPTION
Expand Down
1 change: 1 addition & 0 deletions Documentation/git-receive-pack.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ git-receive-pack - Receive what is pushed into the repository

SYNOPSIS
--------
[verse]
'git-receive-pack' <directory>

DESCRIPTION
Expand Down
1 change: 1 addition & 0 deletions Documentation/git-reflog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ git-reflog - Manage reflog information

SYNOPSIS
--------
[verse]
'git reflog' <subcommand> <options>

DESCRIPTION
Expand Down
Loading

0 comments on commit 7791a1d

Please sign in to comment.