From patchwork Thu Oct 28 16:21:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Philippe Blain via GitGitGadget X-Patchwork-Id: 12590515 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 55AFCC433EF for ; Thu, 28 Oct 2021 16:22:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3D6D9610CA for ; Thu, 28 Oct 2021 16:22:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230274AbhJ1QYg (ORCPT ); Thu, 28 Oct 2021 12:24:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229723AbhJ1QYe (ORCPT ); Thu, 28 Oct 2021 12:24:34 -0400 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45339C061570 for ; Thu, 28 Oct 2021 09:22:07 -0700 (PDT) Received: by mail-wr1-x435.google.com with SMTP id u18so11205220wrg.5 for ; Thu, 28 Oct 2021 09:22:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:in-reply-to:references:from:date:subject:mime-version :content-transfer-encoding:fcc:to:cc; bh=rsu4JXnQ4VB77OGtLFfCDO6+bo0XB0DURS5md8Bk8lo=; b=fiDNoRnl2vgrnJgsc0tSxc7QOOqj+2coVDfNfDH/5ju4ieJtH4+pNMJCFoN9je2yYu lFkC0uSK1EP8g89yUpuWX1TdCVla5jDisSX90OS4VqCIrWpiegxJ3bNqyVHFx3XIQelk +6AAY99WnXx0oP5QCj5M3hotUMT2jC3KYIAM4GNMHIKKjHJa0AqsraRGBCtH/eyh7KTm R9uD/jKXr7uPIjeX46gbs+VUwg6EZIKFicBpUwU+epVW0QsAs7gXJi4heeitYlwKnI2G A46dgR9ygARp68a9No18RNC9kbrgeDY5XiCWPAoBipVNQ7oPzEEJ125kueu461je34bc xT5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:in-reply-to:references:from:date :subject:mime-version:content-transfer-encoding:fcc:to:cc; bh=rsu4JXnQ4VB77OGtLFfCDO6+bo0XB0DURS5md8Bk8lo=; b=cSUzeVcWV8oFHHYN2jUoweWHZeZ6281s688i/2LlIY2OJqGvG+BNVvlPCHwEjaBJ1r mb6v8ouv4yv51PLTwhlNKE/oARKNHNF9aswoPHiC7fgaa5BZzHX4ZEVMX2O4JcN+YEFe BeVsmdIJhyqQ3RMst+QJIKGXW2ZqhBnZqbp2g+nIvl94YZ7q9BiUy4UQigxszcqWHT4g Zrg54Fh1QtfsyZp9PGb0BCko6Y6zwDkqW3yJYN/qDdR7FQOVa+73Pe3nb8WDvh8+Da5B rFauQZ7hrY49yT3urp9pGUyszGvhbwzdgPmbxnqx5rxyN1GFCHCH23HegRNdaKUKsq0t cVYQ== X-Gm-Message-State: AOAM532Py9iiaa26aueImzOyymMmWrkBxBz1HX+gds16PT+1Lh2cvVf+ 2wVcwHpr/I4nSusIVeqlKLEo7DzKUQg= X-Google-Smtp-Source: ABdhPJzseADKdr+oKvu4enqAWho5Nf4pzh92YR9e9q9+OTvzeAQx3rF7parwPGkTLpOOM2nZw1Oj7w== X-Received: by 2002:a05:6000:154b:: with SMTP id 11mr6969232wry.422.1635438125851; Thu, 28 Oct 2021 09:22:05 -0700 (PDT) Received: from [127.0.0.1] ([13.74.141.28]) by smtp.gmail.com with ESMTPSA id v6sm4186389wrx.17.2021.10.28.09.22.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Oct 2021 09:22:05 -0700 (PDT) Message-Id: In-Reply-To: References: From: " =?utf-8?q?Jean-No=C3=ABl?= Avila via GitGitGadget" Date: Thu, 28 Oct 2021 16:21:55 +0000 Subject: [PATCH v2 0/9] doc: fix grammar rules in commands' syntax MIME-Version: 1.0 Fcc: Sent To: git@vger.kernel.org Cc: Martin =?utf-8?b?w4VncmVu?= , Eric Sunshine , =?utf-8?q?Jean-No=C3=ABl?= Avila Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org 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=