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

Re: [PATCH] submodule helper: accept '.' for repositories with no submodules

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 22, 2016, 22:50 UTC
Message-ID
<xmqqy49adt4p.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<CAGZ79kYhK1dDQsxjRwhArXMi-0Gbd8ciYwdFnerT4fjvpthWCg@mail.gmail.com>
Stefan Beller <sbeller@google.com> writes:
> So for now I would send the performance regressing flip of
> IS_GITLINK and match_pathspec targeting 2.7 and then add a
> --unmatch-ok switch for 2.8 and later?

"git submodule $subcommand -- COPYIN\*" that detects that there is no submodule that match the pathspec and errors out, which is what the C rewrite does, is a new feature that was done by accident when we should have been doing a faithful translation.

I'd say bug-to-bug-compatible regression fix is appropriate for 2.8 and below; the "check ce-mode first and then pathspec match" should be done as a new feature after 2.8 final, and if --unmatch-ok is necessary to make the feature work better, that, too, should come in the same timeframe.

Previous: Stefan Beller
Message 10 of 10 in “submodule helper: accept '.' for repositories with no submodules”
  1. submodule helper: accept '.' for repositories with no submodulesStefan Beller, Mar 22, 2016
  2. Junio C HamanoMar 22, 2016
  3. Stefan BellerMar 22, 2016
  4. Junio C HamanoMar 22, 2016
  5. Stefan BellerMar 22, 2016
  6. Junio C HamanoMar 22, 2016
  7. Stefan BellerMar 22, 2016
  8. Junio C HamanoMar 22, 2016
  9. Stefan BellerMar 22, 2016
  10. Junio C HamanoMar 22, 2016

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.