Skip to content

[Enhancement] Updating Submodules Improvements #1513

Open
@Doodeletion

Description

@Doodeletion

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.

Image
Image

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 Doc
  • git 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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions