Re: Git Submodules ref setting
- From
Philip Oakley <philipoakley@iee.email>
- Date
- May 12, 2022, 21:18 UTC
- Message-ID
- <c9097f6d-3bae-a5ee-96e5-1760bb51112c@iee.email>
- In-Reply-To
- <F20FCD5B-7788-4D4C-8402-2C4CF447B2F5@gmail.com>
On 12/05/2022 21:01, Вадим Цветков wrote:
Show 6 quoted lines
> Hello, > > I've started a small project which involves several git repositories, which depends on each other. > For dealing with these repos I wanted to use git submodules as a simple package manager. > However, it seems impossible to lock a submodule to particular ref, only to a branch. > I would like to ask if this is deliberate design choice?
This may be a confusion about how some large projects use sub-modules and are now able to follow the developments within a sub-module branch.
The original sub-module mechanism is still available where the sub-module is locked at a specific commit object id's hash i.e. a specific 'library' version of that sub-module (in that context assumed to be rarely changing).
> And if it's not, may I contribute this feature?
-- Philip