Open
Description
Updating specific submodule
To update a specific submodule you currently have to click Update Submodule
, then un-tick All submodules
and finally choose the submodule you want to update from the dropdown.
It would be nice if you could update a specific submodule directly.
I can think of 2 ways to do this:
- add an update option to submodule context menu
- add inline update button to submodule (like the button in the
submodules
header for updating all submodules)
Updating with --remote
To use update --remote
you currently have to use the normal update submodules
button and then tick Use --remote option
.
This is very accurate to Git's behavior, but I think it would be better to have 2 separate buttons for git submodule update
and git submodule update --remote
:
git submodule update
reads what submodule commit the superproject expects and then sets the submodule to that expected state (fetching if the referenced commit is not available locally) Git Docgit submodule update --remote
changes what submodule commit the superproject expects to the newest commit on the submodule's remote-tracking branch Git Doc
So the 2 commands do something very different: one makes sure that your submodule is in the expected state, while the other changes what state is expected.