From: Ævar Arnfjörð Bjarmason Date: Tue, 04 Oct 2022 07:50:48 GMT Subject: Re: [PATCH v3 22/36] doc txt & -h consistency: make "rerere" consistent Message-ID: <221004.86fsg4t3x2.gmgdl@evledraar.gmail.com> In-Reply-To: On Mon, Oct 03 2022, Junio C Hamano wrote: > Ævar Arnfjörð Bjarmason writes: > >> On Sat, Oct 01 2022, Junio C Hamano wrote: >> >>> Ævar Arnfjörð Bjarmason writes: >>> >>>> For "rerere" say "pathspec" consistently, and list the subcommands in >>>> the order that they're discussed in the "COMMANDS" section of the >>>> documentation. >>> >>> pathspec refers to the entire set of patterns, which consists of one >>> or more "pathspec element"s, so there is no need for "..." there. >> >> Maybe I'm misreading this, but are you suggesting that whenever >> "" appears in the text the user should understand it as >> "...", i.e. as is the case with the special-case that is >> "". > > Not really. A is a set of s, so > writing "..." and "" are equivalent. So, "yes"? I.e. leaving aside "pathspec" or "pathspec-element" "" is redundant to "..." in this intpreretation? But for any given "" the "" is not the same as "..."? >> I'm not opposet do that, but I really wish we could avoid further >> special-cases, there's no current user of "" (with an "s" for >> plural. > > Presumably just like range-diff compares two ranges (which in the > normal command line syntax we would not have), some future commands > may need to take two pathspecs (that is two sets of patterns to > match paths) to do something interesting, but I do not think of > anything that does so in the current command set, so it is very good > that nobody claims to take with an "s"for plural. > >> Documentation/git-clone.txt:--recurse-submodules[=]:: >> >> Should be read as supporting: >> >> --recurse-submodules some/path some-other-path > > Yup, the option should support it, alternatively it could take > . Or it could take multiple of these options in which case > each of them is taking a pathspec element. In bourne shell syntax we're talking about the distinction between: $ echo --opt {a,b} --opt a b And: $ echo --opt={a,b} --opt=a --opt=b Which in the SYNOPSIS syntax are (asuming "a", and "b" are ), respectively: --opt ... And: [--opt ]... If we maintain that for a given "