| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 7166703 commit 1530fd2
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -37,7 +37,7 @@ | |||
| 37 | 37 | ||
| 38 | 38 | ||
| 39 | 39 | class Object(LazyMixin): | |
| 40 | - """Base class for classes representing kinds of git objects. | ||
| 40 | + """Base class for classes representing git object types. | ||
| 41 | 41 | ||
| 42 | 42 | The following leaf classes represent specific kinds of git objects: | |
| 43 | 43 | ||
@@ -61,7 +61,7 @@ class Object(LazyMixin): | |||
| 61 | 61 | :note: | |
| 62 | 62 | :class:`~git.objects.submodule.base.Submodule` is defined under the hierarchy | |
| 63 | 63 | rooted at this :class:`Object` class, even though submodules are not really a | |
| 64 | - kind of git object. | ||
| 64 | + type of git object. | ||
| 65 | 65 | ||
| 66 | 66 | """ | |
| 67 | 67 | ||
@@ -78,7 +78,7 @@ class Object(LazyMixin): | |||
| 78 | 78 | __slots__ = ("repo", "binsha", "size") | |
| 79 | 79 | ||
| 80 | 80 | type: Union[Lit_commit_ish, None] = None | |
| 81 | - """String identifying (a concrete :class:`Object` subtype for) a kind of git object. | ||
| 81 | + """String identifying (a concrete :class:`Object` subtype for) a git object type. | ||
| 82 | 82 | ||
| 83 | 83 | The subtypes that this may name correspond to the kinds of git objects that exist, | |
| 84 | 84 | i.e., the objects that may be present in a git repository. | |
@@ -87,7 +87,7 @@ class Object(LazyMixin): | |||
| 87 | 87 | Most subclasses represent specific types of git objects and override this class | |
| 88 | 88 | attribute accordingly. This attribute is ``None`` in the :class:`Object` base | |
| 89 | 89 | class, as well as the :class:`IndexObject` intermediate subclass, but never | |
| 90 | - ``None`` in concrete leaf subclasses representing specific kinds of git objects. | ||
| 90 | + ``None`` in concrete leaf subclasses representing specific git object types. | ||
| 91 | 91 | ||
| 92 | 92 | :note: | |
| 93 | 93 | See also :class:`~git.types.Commit_ish`. | |
@@ -214,9 +214,10 @@ def stream_data(self, ostream: "OStream") -> "Object": | |||
| 214 | 214 | class IndexObject(Object): | |
| 215 | 215 | """Base for all objects that can be part of the index file. | |
| 216 | 216 | ||
| 217 | - The classes representing kinds of git objects that can be part of the index file are | ||
| 217 | + The classes representing git object types that can be part of the index file are | ||
| 218 | 218 | :class:`~git.objects.tree.Tree and :class:`~git.objects.blob.Blob`. In addition, | |
| 219 | - :class:`~git.objects.submodule.base.Submodule` is also a subclass. | ||
| 219 | + :class:`~git.objects.submodule.base.Submodule`, which is not really a git object | ||
| 220 | + type but can be part of an index file, is also a subclass. | ||
| 220 | 221 | """ | |
| 221 | 222 | ||
| 222 | 223 | __slots__ = ("path", "mode") | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -67,9 +67,9 @@ | |||
| 67 | 67 | """ | |
| 68 | 68 | ||
| 69 | 69 | Commit_ish = Union["Commit", "TagObject", "Blob", "Tree"] | |
| 70 | - """Union of the :class:`~git.objects.base.Object`-based types that represent kinds of | ||
| 71 | - git objects. This union is often usable where a commit-ish is expected, but is not | ||
| 72 | - actually limited to types representing commit-ish git objects. | ||
| 70 | + """Union of the :class:`~git.objects.base.Object`-based types that represent git object | ||
| 71 | + types. This union is often usable where a commit-ish is expected, but is not actually | ||
| 72 | + limited to types representing commit-ish git objects. | ||
| 73 | 73 | ||
| 74 | 74 | See gitglossary(7) on: | |
| 75 | 75 | ||
@@ -93,7 +93,7 @@ | |||
| 93 | 93 | ||
| 94 | 94 | Lit_commit_ish = Literal["commit", "tag", "blob", "tree"] | |
| 95 | 95 | """Literal strings identifying concrete :class:`~git.objects.base.Object` subtypes | |
| 96 | - representing kinds of git objects. | ||
| 96 | + representing git object types. | ||
| 97 | 97 | ||
| 98 | 98 | See the :class:`Object.type <git.objects.base.Object.type>` attribute. | |
| 99 | 99 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments