Git development
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Dirk Gouders <dirk@gouders.net>
Cc: git@vger.kernel.org,  "Junio C Hamano <gitster@pobox.com>,
	Andy Koppe" <andy.koppe@gmail.com>
Subject: Re: [PATCH v4] doc/gitcli: minor fixes
Date: Mon, 23 Nov 2026 15:34:02 -0800	[thread overview]
Message-ID: <xmqqo6bf3yxh.fsf@gitster.g> (raw)
In-Reply-To: <20261123-b4-gitcli-v4-1-de130d0e07e6@gouders.net> (Dirk Gouders's message of "Mon, 23 Nov 2026 22:29:24 +0100")

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.


  reply	other threads:[~2026-11-23 23:34 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 [this message]
2026-11-24  6:00       ` Dirk Gouders
2026-11-24  8:31     ` [PATCH v5] " Dirk Gouders
2026-11-24 15:41       ` 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=xmqqo6bf3yxh.fsf@gitster.g \
    --to=gitster@pobox.com \
    --cc=andy.koppe@gmail.com \
    --cc=dirk@gouders.net \
    --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