I know that when you add a submodule to a git repository it tracks a particular commit of that submodule referenced by its sha1.
I'm trying to find where this sha1 value is stored.
The .gitmodules
and .git/config
files only show the paths for the submodule, but not the sha1 of the commit.
The git-submodule(1) reference only speaks of a gitlink
entry and the gitmodules(5) reference doesn't say anything about this either.