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

Re: Git submodule remove

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 24, 2021, 20:46 UTC
Message-ID
<xmqqo87e40cq.fsf@gitster.g>
In-Reply-To
<0101017cb4026947-7e22d019-674b-4d1c-b229-b10328252341-000000@us-west-2.amazonses.com>
"Kalyan Sriram" <kalyan@coderkalyan.com> writes:
Show 7 quoted lines
>> So "git rm" seems to be doing exactly what "git submodule rm" should
>> be doing, nothing more, nothing less.
>
> That makes sense, thanks for the clarification. So it looks like there
> isn't any work to be done here after all?
>
> What are your thoughts about aliasing git submodule rm to git rm? 

It is unfortunate that "git rm" learned these "extra" things that are integral part of "submodule removal" if you believe that the way "submodules" are handled in the current "git submodule"-style design is the only thing all Git users must follow.

Unless we plan to eventually make "git rm" unlearn these hardcoded 'git submodule'-way actions it does (like editing the .gitmodules file) and move them to "git submodule rm", I do not think it is worth the engineering effort to add an alias so that "git submodule rm" would be a synonym to the current "git rm".

Thanks.
Previous: Kalyan SriramNext: Ævar Arnfjörð Bjarmason
Message 9 of 15 in “Git submodule remove”
  1. Kalyan SriramOct 21, 2021
  2. brian m. carlsonOct 21, 2021
  3. Junio C HamanoOct 21, 2021
  4. Matheus TavaresOct 21, 2021
  5. Junio C HamanoOct 21, 2021
  6. Kalyan SriramOct 22, 2021
  7. Junio C HamanoOct 22, 2021
  8. Kalyan SriramOct 24, 2021
  9. Junio C HamanoOct 24, 2021
  10. Ævar Arnfjörð BjarmasonOct 22, 2021
  11. Junio C HamanoOct 22, 2021
  12. Randall S. BeckerOct 22, 2021
  13. Kalyan SriramOct 22, 2021
  14. Randall S. BeckerOct 22, 2021
  15. Junio C HamanoOct 22, 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.