Updating submodules with submodule --remote
will pull in the HEAD of the submodules rather than the hash recorded within the wrapping git repo. But it seems that the wrapping git repo will keep managing the hash of them in itself, needlessly introducing noise to its own history.
E.g. after an submodule update --remote
there will be a change introduced in the wrapping project, something like:
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: <module-name> (new commits)
Is it possibly not to include any hashes or information about the hash of submodules, in a git repo containing submodules, such that submodule update
will not introduce the need for new commits and will not be reflected in the project's history?
Motivating Scenario:
This would solve a workflow that can be described as "always use the latest of all submodules", which currently requires special administration after each submodule update
(committing or somehow removing the above change record from the history.. which makes workflow very confusing when you just always want to use the latest).