99class Submodule (object ):
1010 """
1111 A Submodule is a named reference to a Commit on another Repo.
12- Every Submodule instance contains a name and local and remote paths.
12+ Every Submodule instance contains a name, a path into the local repo,
13+ and a URI pointing at the remote repository.
1314
1415 Submodules are very close in behavior to HEAD pointer. It just sits on
1516 top of a structure, in this case, at the end of folders tree, and says
@@ -37,16 +38,16 @@ def __init__(self, repo=None, id=None, mode=None, name='',
3738 Pointer to Repo object instance.
3839 'id'
3940 Is the Sha of the commit on a remote server. This object does NOT
40- (usually) exist on this, current repo.
41+ (usually) exist in this repo.
4142 'mode'
4243 A black hole at this time. Trying to keep the input args
43- similar between Tree, Blob and Subprocess instantiation classes.
44+ similar between Tree, Blob and Submodule classes.
4445 'name'
4546 This is just the last segment in the submodule's full local path.
4647 It's the name of the actual folder to which a submodule is tied.
4748 'mode'
4849 A black hole at this time. Trying to keep the input args
49- similar between Tree, Blob and Subprocess instantiation classes.
50+ similar between Tree, Blob and Submodule classes.
5051 'commit_context'
5152 A string with ID of the commit that was the root for the tree
5253 structure that lead us to this folder (Tree object) that contains
@@ -57,9 +58,9 @@ def __init__(self, repo=None, id=None, mode=None, name='',
5758 the parent folders we passed on the way from root of the commit to
5859 this point in the folder tree.
5960 Submodules in the .gitmodules are referenced by their full path
60- and contents of this argument are used to retrieve the URI of the
61+ and the contents of this argument is used to retrieve the URI of the
6162 remote repo tied to this full local path.
62- Example: "/ lib/vendor/vendors_repoA"
63+ Example: "lib/vendor/vendors_repoA"
6364 """
6465 self .repo = repo
6566 self .id = id
0 commit comments