Git development
 help / color / mirror / Atom feed
From: Dirk Gouders <dirk@gouders.net>
To: git@vger.kernel.org
Cc: "Junio C Hamano <gitster@pobox.com>,
	Andy Koppe" <andy.koppe@gmail.com>,
	Dirk Gouders <dirk@gouders.net>
Subject: [PATCH v5] doc/gitcli: minor fixes
Date: Tue, 24 Nov 2026 09:31:55 +0100	[thread overview]
Message-ID: <20261124-b4-gitcli-v5-1-450d50655781@gouders.net> (raw)
In-Reply-To: <20261123-b4-gitcli-v4-1-de130d0e07e6@gouders.net>

Fix some grammar issues in the gitcli documentation:

- use plural/singular where appropriate
- use imperative form when rules are listed
- fix a typo in the first rule regarding flags

Signed-off-by: Dirk Gouders <dirk@gouders.net>
---
Changes in v5:
- Restore a lost change caused by wrong tooling.
- Link to v4: https://patch.msgid.link/20261123-b4-gitcli-v4-1-de130d0e07e6@gouders.net

Changes in v4:
- Reword the commit message and clearly list the changes
- Fix a typo in the first rule regarding flags as suggested by Andy Koppe
- Link to v3: https://patch.msgid.link/20261115070357.113875-1-dirk@gouders.net

Changes in v3:
- Resent with proper Cc and range-diff against v1.

Changes in v2:
- Addressed feedback on the second part of the change.

Range-diff versus v4:

1:  19c1ee5260 ! 1:  147ae7818c doc/gitcli: minor fixes
    @@ Documentation/gitcli.adoc: gitcli - Git command-line interface and conventions
      Many commands take revisions (most often "commits", but sometimes
      "tree-ish", depending on the context and command) and paths as their
     @@ Documentation/gitcli.adoc: arguments.  Here are the rules:
    -    `v1.0` and `v2.0` are revisions and `arch/x86` and `include/asm-x86`
         are paths.
      
    -- * When an argument can be misunderstood as either a revision or a path,
    -+ * When arguments can be misunderstood as either a revision or a path,
    -    they can be disambiguated by placing `--` between them.
    +  * When an argument can be misunderstood as either a revision or a path,
    +-   they can be disambiguated by placing `--` between them.
    ++   it can be disambiguated by placing `--` before or after it.
         E.g. `git diff -- HEAD` is, "I have a file called HEAD in my work
         tree.  Please show changes between the version I staged in the index
    +    and what I have in the work tree for that file", not "show the difference
     @@ Documentation/gitcli.adoc: you will.
      Here are the rules regarding the "flags" that you should follow when you are
      scripting Git:
---
 Documentation/gitcli.adoc | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Documentation/gitcli.adoc b/Documentation/gitcli.adoc
index 9c4598e29c..775dd8ee09 100644
--- a/Documentation/gitcli.adoc
+++ b/Documentation/gitcli.adoc
@@ -8,7 +8,7 @@ gitcli - Git command-line interface and conventions
 DESCRIPTION
 -----------
 
-This manual describes the convention used throughout Git CLI.
+This manual describes the conventions used throughout Git CLI.
 
 Many commands take revisions (most often "commits", but sometimes
 "tree-ish", depending on the context and command) and paths as their
@@ -29,7 +29,7 @@ arguments.  Here are the rules:
    are paths.
 
  * When an argument can be misunderstood as either a revision or a path,
-   they can be disambiguated by placing `--` between them.
+   it can be disambiguated by placing `--` before or after it.
    E.g. `git diff -- HEAD` is, "I have a file called HEAD in my work
    tree.  Please show changes between the version I staged in the index
    and what I have in the work tree for that file", not "show the difference
@@ -76,8 +76,8 @@ you will.
 Here are the rules regarding the "flags" that you should follow when you are
 scripting Git:
 
- * Splitting short options to separate words (prefer `git foo -a -b`
-   to `git foo -ab`, the latter may not even work).
+ * Split short options into separate words: prefer `git foo -a -b`
+   to `git foo -ab` (the latter may not even work).
 
  * When a command-line option takes an argument, use the 'stuck' form.  In
    other words, write `git foo -oArg` instead of `git foo -o Arg` for short

---
base-commit: 7fb6055e678f800320d8ab8cd8f201d9493d1ba0
change-id: 20261123-b4-gitcli-f73a1b659c78


  parent reply	other threads:[~2026-11-24  8:32 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-14 20:15 [PATCH 1/1] doc/gitcli: minor fixes Dirk Gouders
2026-11-14 21:55 ` Junio C Hamano
2026-11-14 22:09   ` Dirk Gouders
2026-11-14 22:23 ` [PATCH v2] " Dirk Gouders
2026-11-15  7:03 ` [PATCH v3] " Dirk Gouders
2026-11-21  6:42   ` Andy Koppe
2026-11-22 19:15     ` Junio C Hamano
2026-11-22 19:33       ` Dirk Gouders
2026-11-23 21:29   ` [PATCH v4] " Dirk Gouders
2026-11-23 23:34     ` Junio C Hamano
2026-11-24  6:00       ` Dirk Gouders
2026-11-24  8:31     ` Dirk Gouders [this message]
2026-11-24 15:41       ` [PATCH v5] " Junio C Hamano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261124-b4-gitcli-v5-1-450d50655781@gouders.net \
    --to=dirk@gouders.net \
    --cc=andy.koppe@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox