From: Jean-Noël Avila via GitGitGadget Date: Thu, 28 Oct 2021 16:21:55 GMT Subject: [PATCH v2 0/9] doc: fix grammar rules in commands' syntax Message-ID: In-Reply-To: There are command expressions which do not follow the grammar syntax rules. According to the coding guidelines, the placeholders must: * be in small letters * enclosed in angle brackets * use hyphens as spaces They also must represent tokens' meaning as atomic entities. Some fixups for git-credential, git-ls-files, git-init and git-http-push. changes since v1: * split changes across simpler commits Signed-off-by: Jean-Noël Avila jn.avila@free.fr Jean-Noël Avila (9): doc: fix git credential synopsis doc: split placeholders as individual tokens doc: express grammar placeholders between angle brackets doc: use only hyphens as word separators in placeholders doc: git-ls-files: express options as optional alternatives doc: use three dots for indicating repetition instead of star doc: uniformize placeholders' case doc: git-http-push: describe the refs as pattern pairs doc: git-init: clarify file modes in octal. Documentation/date-formats.txt | 4 +-- Documentation/git-archimport.txt | 14 ++++---- Documentation/git-checkout.txt | 36 +++++++++---------- Documentation/git-cherry-pick.txt | 6 ++-- Documentation/git-clone.txt | 8 ++--- Documentation/git-config.txt | 46 ++++++++++++------------ Documentation/git-credential.txt | 2 +- Documentation/git-cvsexportcommit.txt | 4 +-- Documentation/git-cvsimport.txt | 8 ++--- Documentation/git-diff-files.txt | 2 +- Documentation/git-diff-index.txt | 2 +- Documentation/git-diff-tree.txt | 2 +- Documentation/git-fsck.txt | 2 +- Documentation/git-gui.txt | 2 +- Documentation/git-help.txt | 6 ++-- Documentation/git-http-fetch.txt | 2 +- Documentation/git-http-push.txt | 15 ++++---- Documentation/git-init-db.txt | 2 +- Documentation/git-init.txt | 26 +++++++------- Documentation/git-log.txt | 8 ++--- Documentation/git-ls-files.txt | 6 ++-- Documentation/git-merge-index.txt | 2 +- Documentation/git-p4.txt | 8 ++--- Documentation/git-pack-objects.txt | 4 +-- Documentation/git-pack-redundant.txt | 2 +- Documentation/git-reflog.txt | 4 +-- Documentation/git-remote.txt | 8 ++--- Documentation/git-request-pull.txt | 8 ++--- Documentation/git-shortlog.txt | 8 ++--- Documentation/git-sparse-checkout.txt | 2 +- Documentation/git-stage.txt | 2 +- Documentation/git-svn.txt | 2 +- Documentation/git-web--browse.txt | 2 +- Documentation/gitcredentials.txt | 4 +-- Documentation/gitsubmodules.txt | 2 +- Documentation/gitworkflows.txt | 6 ++-- Documentation/pretty-formats.txt | 52 +++++++++++++-------------- Documentation/urls-remotes.txt | 8 ++--- builtin/credential.c | 2 +- 39 files changed, 165 insertions(+), 164 deletions(-) base-commit: 9d530dc0024503ab4218fe6c4395b8a0aa245478 Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-1066%2Fjnavila%2Ffix_manpages_placeholders-v2 Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-1066/jnavila/fix_manpages_placeholders-v2 Pull-Request: https://github.com/gitgitgadget/git/pull/1066 Range-diff vs v1: -: ----------- > 1: 4d1fa80d471 doc: fix git credential synopsis -: ----------- > 2: 0045fe6faea doc: split placeholders as individual tokens 1: 605236f6d49 ! 3: 4d2d198f572 doc: fix grammar rules in commands'syntax @@ Metadata Author: Jean-Noël Avila ## Commit message ## - doc: fix grammar rules in commands'syntax + doc: express grammar placeholders between angle brackets - According to the coding guidelines, the placeholders must: - * be in small letters - * enclosed in angle brackets - - Some other rules are also applied. + This rules discerns user inputs from verbatim options in the + synopsis. Signed-off-by: Jean-Noël Avila - ## Documentation/git-archimport.txt ## -@@ Documentation/git-archimport.txt: git-archimport - Import a GNU Arch repository into Git - SYNOPSIS - -------- - [verse] --'git archimport' [-h] [-v] [-o] [-a] [-f] [-T] [-D depth] [-t tempdir] -- [:] ... -+'git archimport' [-h] [-v] [-o] [-a] [-f] [-T] [-D ] [-t ] -+ /[:]... - - DESCRIPTION - ----------- - - ## Documentation/git-checkout.txt ## -@@ Documentation/git-checkout.txt: SYNOPSIS - 'git checkout' [-q] [-f] [-m] [] - 'git checkout' [-q] [-f] [-m] --detach [] - 'git checkout' [-q] [-f] [-m] [--detach] --'git checkout' [-q] [-f] [-m] [[-b|-B|--orphan] ] [] -+'git checkout' [-q] [-f] [-m] [[-b|-B|--orphan] ] [] - 'git checkout' [-f|--ours|--theirs|-m|--conflict=