Git development
 help / color / mirror / Atom feed
* [PATCH 1/1] doc/gitcli: minor fixes
@ 2026-11-14 20:15 Dirk Gouders
  2026-11-14 21:55 ` Junio C Hamano
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Dirk Gouders @ 2026-11-14 20:15 UTC (permalink / raw)
  To: git; +Cc: Dirk Gouders

Fix three details in the gitcli documentation:

Use plural where appropriate and imperative form when rules are
listed.

Signed-off-by: Dirk Gouders <dirk@gouders.net>
---
 Documentation/gitcli.adoc | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Documentation/gitcli.adoc b/Documentation/gitcli.adoc
index 9c4598e29c..6b0a58938a 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
@@ -28,7 +28,7 @@ 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.
    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
@@ -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 to 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
-- 
2.55.0


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* Re: [PATCH 1/1] doc/gitcli: minor fixes
  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
  2 siblings, 1 reply; 13+ messages in thread
From: Junio C Hamano @ 2026-11-14 21:55 UTC (permalink / raw)
  To: Dirk Gouders; +Cc: git

Dirk Gouders <dirk@gouders.net> writes:

> -This manual describes the convention used throughout Git CLI.
> +This manual describes the conventions used throughout Git CLI.

OK.

> @@ -28,7 +28,7 @@ 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.

I would rather have left the subject as-is, and then rewrote the
conclusion part to "it can be disambiguated by placing `--` before
or arter it".  Once you start talking about multiple arguments, you
would have to also reorder them so that all revs come first, then
'--', and then all paths. 

> @@ -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 to separate words: prefer `git foo -a -b`
> +   to `git foo -ab` (the latter may not even work).

OK.

Thanks.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 1/1] doc/gitcli: minor fixes
  2026-11-14 21:55 ` Junio C Hamano
@ 2026-11-14 22:09   ` Dirk Gouders
  0 siblings, 0 replies; 13+ messages in thread
From: Dirk Gouders @ 2026-11-14 22:09 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

On Sat, Nov 14 2026, Junio C Hamano wrote:

> Dirk Gouders <dirk@gouders.net> writes:
>
>> -This manual describes the convention used throughout Git CLI.
>> +This manual describes the conventions used throughout Git CLI.
>
> OK.
>
>> @@ -28,7 +28,7 @@ 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.
>
> I would rather have left the subject as-is, and then rewrote the
> conclusion part to "it can be disambiguated by placing `--` before
> or arter it".  Once you start talking about multiple arguments, you
> would have to also reorder them so that all revs come first, then
> '--', and then all paths. 

Thank you for the quick review.

Yes, there were two possible fixes for this second detail.
I will send a v2 according to your suggestion.

Regards,

Dirk

>> @@ -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 to separate words: prefer `git foo -a -b`
>> +   to `git foo -ab` (the latter may not even work).
>
> OK.
>
> Thanks.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [PATCH v2] doc/gitcli: minor fixes
  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:23 ` Dirk Gouders
  2026-11-15  7:03 ` [PATCH v3] " Dirk Gouders
  2 siblings, 0 replies; 13+ messages in thread
From: Dirk Gouders @ 2026-11-14 22:23 UTC (permalink / raw)
  To: git; +Cc: Dirk Gouders

Fix three details in the gitcli documentation:

Use plural/singular where appropriate and imperative form when rules
are listed.

Signed-off-by: Dirk Gouders <dirk@gouders.net>
---
 Documentation/gitcli.adoc | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Documentation/gitcli.adoc b/Documentation/gitcli.adoc
index 9c4598e29c..454c482a50 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 to 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
-- 
2.55.0


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH v3] doc/gitcli: minor fixes
  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:23 ` [PATCH v2] " Dirk Gouders
@ 2026-11-15  7:03 ` Dirk Gouders
  2026-11-21  6:42   ` Andy Koppe
  2026-11-23 21:29   ` [PATCH v4] " Dirk Gouders
  2 siblings, 2 replies; 13+ messages in thread
From: Dirk Gouders @ 2026-11-15  7:03 UTC (permalink / raw)
  To: git; +Cc: Junio C Hamano, Dirk Gouders

Fix three details in the gitcli documentation:

Use plural/singular where appropriate and imperative form when rules
are listed.

Signed-off-by: Dirk Gouders <dirk@gouders.net>
---
Please disregard v2, I forgot to Cc the reviewer and to add the range-diff.

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

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

 Documentation/gitcli.adoc | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Documentation/gitcli.adoc b/Documentation/gitcli.adoc
index 9c4598e29c..454c482a50 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 to 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

Range-diff against v1:
1:  1393397087 ! 1:  7f44bbde6b doc/gitcli: minor fixes
    @@ Commit message
     
         Fix three details in the gitcli documentation:
     
    -    Use plural where appropriate and imperative form when rules are
    -    listed.
    +    Use plural/singular where appropriate and imperative form when rules
    +    are listed.
     
         Signed-off-by: Dirk Gouders <dirk@gouders.net>
     
    @@ 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:
-- 
2.55.0


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* Re: [PATCH v3] doc/gitcli: minor fixes
  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-23 21:29   ` [PATCH v4] " Dirk Gouders
  1 sibling, 1 reply; 13+ messages in thread
From: Andy Koppe @ 2026-11-21  6:42 UTC (permalink / raw)
  To: Dirk Gouders; +Cc: git, Junio C Hamano

On 15 Nov 2026, Dirk Gouders wrote:
> Fix three details in the gitcli documentation:
>
> Use plural/singular where appropriate and imperative form when rules
> are listed.

The introduction promises a list of three, but only as single point
follows. The message should mention the change to the '--' rule.

> - * Splitting short options to separate words (prefer `git foo -a -b`
> -   to `git foo -ab`, the latter may not even work).
> + * Split short options to separate words: prefer `git foo -a -b`
> +   to `git foo -ab` (the latter may not even work).

Nit: "into separate words" reads more naturally, although "to" was
already there before.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH v3] doc/gitcli: minor fixes
  2026-11-21  6:42   ` Andy Koppe
@ 2026-11-22 19:15     ` Junio C Hamano
  2026-11-22 19:33       ` Dirk Gouders
  0 siblings, 1 reply; 13+ messages in thread
From: Junio C Hamano @ 2026-11-22 19:15 UTC (permalink / raw)
  To: Andy Koppe; +Cc: Dirk Gouders, git

Andy Koppe <andy.koppe@gmail.com> writes:

> On 15 Nov 2026, Dirk Gouders wrote:
>> Fix three details in the gitcli documentation:
>>
>> Use plural/singular where appropriate and imperative form when rules
>> are listed.
>
> The introduction promises a list of three, but only as single point
> follows. The message should mention the change to the '--' rule.

I somehow thought that "three" was a count of patch hunks, i.e.,
locations that needed fixes were (1) the introductory text in the
DESCRIPTION text, (2) a bullet point on argument disambiguation, and
(3) another bullet point on not bundling multiple short options.

Or perhaps I misunderstood your comment, specifically the "only as
single point follows" part.  I assumed that the single thing is that
the patch corrects number agreement and uses imperative for rules,
and I didn't think the issue you had with it was that there are not
three grammatical things (they are two).

>> - * Splitting short options to separate words (prefer `git foo -a -b`
>> -   to `git foo -ab`, the latter may not even work).
>> + * Split short options to separate words: prefer `git foo -a -b`
>> +   to `git foo -ab` (the latter may not even work).
>
> Nit: "into separate words" reads more naturally, although "to" was
> already there before.

Yes, that does read better.

Shall we mark the topic as ready for 'next' as is, or do you want to
do v4 with a (hopefully final) small revision, Dirk?

Thanks both for writing and reviewing.


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH v3] doc/gitcli: minor fixes
  2026-11-22 19:15     ` Junio C Hamano
@ 2026-11-22 19:33       ` Dirk Gouders
  0 siblings, 0 replies; 13+ messages in thread
From: Dirk Gouders @ 2026-11-22 19:33 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: Andy Koppe, git

On Sun, Nov 22 2026, Junio C Hamano wrote:

> Andy Koppe <andy.koppe@gmail.com> writes:
>
>> On 15 Nov 2026, Dirk Gouders wrote:
>>> Fix three details in the gitcli documentation:
>>>
>>> Use plural/singular where appropriate and imperative form when rules
>>> are listed.
>>
>> The introduction promises a list of three, but only as single point
>> follows. The message should mention the change to the '--' rule.
>
> I somehow thought that "three" was a count of patch hunks, i.e.,
> locations that needed fixes were (1) the introductory text in the
> DESCRIPTION text, (2) a bullet point on argument disambiguation, and
> (3) another bullet point on not bundling multiple short options.
>
> Or perhaps I misunderstood your comment, specifically the "only as
> single point follows" part.  I assumed that the single thing is that
> the patch corrects number agreement and uses imperative for rules,
> and I didn't think the issue you had with it was that there are not
> three grammatical things (they are two).

As far as I can tell, the "three" stands as is:

1. plural
2. singular
3. imperative

>>> - * Splitting short options to separate words (prefer `git foo -a -b`
>>> -   to `git foo -ab`, the latter may not even work).
>>> + * Split short options to separate words: prefer `git foo -a -b`
>>> +   to `git foo -ab` (the latter may not even work).
>>
>> Nit: "into separate words" reads more naturally, although "to" was
>> already there before.
>
> Yes, that does read better.
>
> Shall we mark the topic as ready for 'next' as is, or do you want to
> do v4 with a (hopefully final) small revision, Dirk?

If it is OK to put it in, I can fix the "to", as well (increments to
four, then ;-)).

It would help me to improve on my workflow, so I will send a v4.

Dirk

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [PATCH v4] doc/gitcli: minor fixes
  2026-11-15  7:03 ` [PATCH v3] " Dirk Gouders
  2026-11-21  6:42   ` Andy Koppe
@ 2026-11-23 21:29   ` Dirk Gouders
  2026-11-23 23:34     ` Junio C Hamano
  2026-11-24  8:31     ` [PATCH v5] " Dirk Gouders
  1 sibling, 2 replies; 13+ messages in thread
From: Dirk Gouders @ 2026-11-23 21:29 UTC (permalink / raw)
  To: git; +Cc: Junio C Hamano <gitster@pobox.com>, Andy Koppe,
	Dirk Gouders

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 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 v3:

1:  2005f5ce9e ! 1:  d844b9957e doc/gitcli: minor fixes
    @@ Metadata
      ## Commit message ##
         doc/gitcli: minor fixes
     
    -    Fix three details in the gitcli documentation:
    +    Fix some grammar issues in the gitcli documentation:
     
    -    Use plural where appropriate and imperative form when rules are
    -    listed.
    +    - 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>
     
    @@ Documentation/gitcli.adoc: you will.
      
     - * Splitting short options to separate words (prefer `git foo -a -b`
     -   to `git foo -ab`, the latter may not even work).
    -+ * Split short options to separate words: prefer `git foo -a -b`
    ++ * 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
---
 Documentation/gitcli.adoc | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Documentation/gitcli.adoc b/Documentation/gitcli.adoc
index 9c4598e29c..78708aeccb 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
@@ -28,7 +28,7 @@ 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.
    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
@@ -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


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* Re: [PATCH v4] doc/gitcli: minor fixes
  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     ` [PATCH v5] " Dirk Gouders
  1 sibling, 1 reply; 13+ messages in thread
From: Junio C Hamano @ 2026-11-23 23:34 UTC (permalink / raw)
  To: Dirk Gouders; +Cc: git, Junio C Hamano <gitster@pobox.com>, Andy Koppe

Dirk Gouders <dirk@gouders.net> writes:

> - Reword the commit message and clearly list the changes
> - Fix a typo in the first rule regarding flags as suggested by Andy Koppe

OK.

> - * 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.

Hmph, an earlier iteration I saw had "by placing `--` before or after
it" and talked about a single argument.

https://lore.kernel.org/git/20261115070357.113875-1-dirk@gouders.net/

And I thought it was much less error prone than this latest version.

"git log main next" where both main and next exist as both a file and a
branch, and what you meant was to trace the changes made to file 'main'
up to the tip of the 'next' branch, you cannot just put `--` in between,
i.e., "git log next -- main", but the new text does not tell the readers
that they may have to swap.

"git log main" where main both exists as both a file and a branch, you
would do "git log -- main" to trace the history of file 'main' up to the
currently checked out commit, or "git log main --" to show the history
leading to the tip of 'main'.  And the earlier text captured exactly
that.

So, while all the other parts of this v4 may improve over v3, I think
this part is a regression.


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH v4] doc/gitcli: minor fixes
  2026-11-23 23:34     ` Junio C Hamano
@ 2026-11-24  6:00       ` Dirk Gouders
  0 siblings, 0 replies; 13+ messages in thread
From: Dirk Gouders @ 2026-11-24  6:00 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git, Junio C Hamano <gitster@pobox.com>, Andy Koppe

On Mon, Nov 23 2026, Junio C Hamano wrote:

> Dirk Gouders <dirk@gouders.net> writes:
>
>> - Reword the commit message and clearly list the changes
>> - Fix a typo in the first rule regarding flags as suggested by Andy Koppe
>
> OK.
>
>> - * 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.
>
> Hmph, an earlier iteration I saw had "by placing `--` before or after
> it" and talked about a single argument.
>
> https://lore.kernel.org/git/20261115070357.113875-1-dirk@gouders.net/
>
> And I thought it was much less error prone than this latest version.
>
> "git log main next" where both main and next exist as both a file and a
> branch, and what you meant was to trace the changes made to file 'main'
> up to the tip of the 'next' branch, you cannot just put `--` in between,
> i.e., "git log next -- main", but the new text does not tell the readers
> that they may have to swap.
>
> "git log main" where main both exists as both a file and a branch, you
> would do "git log -- main" to trace the history of file 'main' up to the
> currently checked out commit, or "git log main --" to show the history
> leading to the tip of 'main'.  And the earlier text captured exactly
> that.
>
> So, while all the other parts of this v4 may improve over v3, I think
> this part is a regression.

I'm very sorry.  I used the additional round to try to migrate the
running topic to b4 and obviously failed in this detail.  I didn't mean
to change this back to v1 -- your review comment to v1 was very
understandable.

Dirk

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [PATCH v5] doc/gitcli: minor fixes
  2026-11-23 21:29   ` [PATCH v4] " Dirk Gouders
  2026-11-23 23:34     ` Junio C Hamano
@ 2026-11-24  8:31     ` Dirk Gouders
  2026-11-24 15:41       ` Junio C Hamano
  1 sibling, 1 reply; 13+ messages in thread
From: Dirk Gouders @ 2026-11-24  8:31 UTC (permalink / raw)
  To: git; +Cc: Junio C Hamano <gitster@pobox.com>, Andy Koppe,
	Dirk Gouders

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


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* Re: [PATCH v5] doc/gitcli: minor fixes
  2026-11-24  8:31     ` [PATCH v5] " Dirk Gouders
@ 2026-11-24 15:41       ` Junio C Hamano
  0 siblings, 0 replies; 13+ messages in thread
From: Junio C Hamano @ 2026-11-24 15:41 UTC (permalink / raw)
  To: Dirk Gouders; +Cc: git, Junio C Hamano <gitster@pobox.com>, Andy Koppe

Dirk Gouders <dirk@gouders.net> writes:

> 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>
> ---

Looking very good.  I have nothing more to add.

Unless I hear objections soonish, let me mark the topic as ready for
'next'.

Thanks.

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2026-11-24 15:41 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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     ` [PATCH v5] " Dirk Gouders
2026-11-24 15:41       ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox