All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* Suggestion: git submodule remove
@ 2015-04-10 11:33 Konrád Lőrinczi
  2015-04-11 12:15 ` Jens Lehmann
  0 siblings, 1 reply; 2+ messages in thread
From: Konrád Lőrinczi @ 2015-04-10 11:33 UTC (permalink / raw
  To: git

Hi GIT devs,

I really miss the
  git submodule remove
command.

This should be handle all the tasks what are needed to remove a submodule.
    - Delete the relevant line from the .gitmodules file.
    - Delete the relevant section from .git/config.
    - Run git rm --cached path_to_submodule (no trailing slash).
    - Delete the now untracked submodule files.

These tasks should be handled automatically.
Currently you can only remove a submodule manually, no way to do it
automatically with one command.
"Removing submodules" and "unsubmodule a submodule" are still a pain
to do in GIT, even in v2.3.5.


Please consider implementing the "git submodule remove" command.


Thanks,
Konrad Lorinczi

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Suggestion: git submodule remove
  2015-04-10 11:33 Suggestion: git submodule remove Konrád Lőrinczi
@ 2015-04-11 12:15 ` Jens Lehmann
  0 siblings, 0 replies; 2+ messages in thread
From: Jens Lehmann @ 2015-04-11 12:15 UTC (permalink / raw
  To: Konrád Lőrinczi, git

Am 10.04.2015 um 13:33 schrieb Konrád Lőrinczi:
> I really miss the
>    git submodule remove
> command.
>
> This should be handle all the tasks what are needed to remove a submodule.
>      - Delete the relevant line from the .gitmodules file.
>      - Delete the relevant section from .git/config.
>      - Run git rm --cached path_to_submodule (no trailing slash).
>      - Delete the now untracked submodule files.
>
> These tasks should be handled automatically.
> Currently you can only remove a submodule manually, no way to do it
> automatically with one command.
> "Removing submodules" and "unsubmodule a submodule" are still a pain
> to do in GIT, even in v2.3.5.

"git rm <submodule-path>" will remove a submodule from .gitmodules,
the index and the work tree (but not from .git/config, that's what
"git submodule deinit" is for).

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-04-11 12:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-10 11:33 Suggestion: git submodule remove Konrád Lőrinczi
2015-04-11 12:15 ` Jens Lehmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.