git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] parse-options: don't complete option aliases by default

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 15, 2021, 18:57 UTC
Message-ID
<xmqqy2a7s8vh.fsf@gitster.g>
In-Reply-To
<8735sfzgkg.fsf@evledraar.gmail.com>
Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
Show 5 quoted lines
> I'm a bit biased here since I like --recursive better, but let's not
> drag that whole argument up again. I don't find the argument in
> bb62e0a99fc (clone: teach --recurse-submodules to optionally take a
> pathspec, 2017-03-17) convincing enough to have moved such a prominent
> use-case to a longer option name.

I do agree that it is a separate topic to pick one or the other as the primary. I think this change means that the users no longer need to stop after hitting a tab:

    clone --recurs<TAB>

and instead get to "clone --recurse-submodules" right away, which is a positigve change. Of course, if the separate topic swaps which is the canonical and which is the alias, the same user would get the new canonical one right away from the same state.

So it does look like a good change to me.
Previous: Felipe ContrerasNext: Philippe Blain
Message 4 of 9 in “parse-options: don't complete option aliases by default”
  1. parse-options: don't complete option aliases by defaultPhilippe Blain via GitGitGadget, Jul 15, 2021
  2. Ævar Arnfjörð BjarmasonJul 15, 2021
  3. Felipe ContrerasJul 15, 2021
  4. Junio C HamanoJul 15, 2021
  5. Philippe BlainJul 16, 2021
  6. Philippe BlainJul 16, 2021
  7. Felipe ContrerasJul 15, 2021
  8. Philippe BlainJul 16, 2021
  9. parse-options: don't complete option aliases by defaultPhilippe Blain via GitGitGadget, Jul 16, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.