-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Refactor submodule related code #36092
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
It is indeed a "commit" |
A commit should not directly contain any files or path. Files belong to trees, and a submodule is represented as a special type of entry within a tree. A submodule could point to a commit. |
Yes, "files" belong to trees, but "submodule" is not a file. It is an entry pointing to a commit. So Old name |
|
I can rename it to |
Also, I don't think the proposed relation is right.
But the submodules only belong to the commit's root tree, so belonging to the commit is right. |
git.Committogit.Tree. Submodule information is parsed from the.submodulefile located in the commit’s tree.CommitSubmoduleFiletoSubmoduleFile.TemplateSubmoduleCommitand replace it withSubmoduleFile.• Rename
GetTemplateSubmoduleCommitstoGetRepoSubmoduleFiles.• Rename
AddTemplateSubmoduleIndexestoAddSubmodulesToRepoIndex.