| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent ee0301a commit 231c3ef
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -102,18 +102,17 @@ class BlameEntry(NamedTuple): | |||
| 102 | 102 | ||
| 103 | 103 | ||
| 104 | 104 | class Repo: | |
| 105 | - """Represents a git repository and allows you to query references, father | ||
| 106 | - commit information, generate diffs, create and clone repositories, and query the | ||
| 107 | - log. | ||
| 105 | + """Represents a git repository and allows you to query references, create commit | ||
| 106 | + information, generate diffs, create and clone repositories, and query the log. | ||
| 108 | 107 | ||
| 109 | 108 | The following attributes are worth using: | |
| 110 | 109 | ||
| 111 | 110 | * :attr:`working_dir` is the working directory of the git command, which is the | |
| 112 | 111 | working tree directory if available or the ``.git`` directory in case of bare | |
| 113 | 112 | repositories. | |
| 114 | 113 | ||
| 115 | - * :attr:`working_tree_dir` is the working tree directory, but will return None if we | ||
| 116 | - are a bare repository. | ||
| 114 | + * :attr:`working_tree_dir` is the working tree directory, but will return ``None`` | ||
| 115 | + if we are a bare repository. | ||
| 117 | 116 | ||
| 118 | 117 | * :attr:`git_dir` is the ``.git`` repository directory, which is always set. | |
| 119 | 118 | """ | |
@@ -596,7 +595,7 @@ def create_tag( | |||
| 596 | 595 | return TagReference.create(self, path, ref, message, force, **kwargs) | |
| 597 | 596 | ||
| 598 | 597 | def delete_tag(self, *tags: TagReference) -> None: | |
| 599 | - """Delete the given tag references""" | ||
| 598 | + """Delete the given tag references.""" | ||
| 600 | 599 | return TagReference.delete(self, *tags) | |
| 601 | 600 | ||
| 602 | 601 | def create_remote(self, name: str, url: str, **kwargs: Any) -> Remote: | |
@@ -775,7 +774,7 @@ def iter_commits( | |||
| 775 | 774 | def merge_base(self, *rev: TBD, **kwargs: Any) -> List[Union[Commit_ish, None]]: | |
| 776 | 775 | R"""Find the closest common ancestor for the given revision | |
| 777 | 776 | (:class:`~git.objects.commit.Commit`\s, :class:`~git.refs.tag.Tag`\s, | |
| 778 | - :class:`git.refs.reference.Reference`\s, etc.). | ||
| 777 | + :class:`~git.refs.reference.Reference`\s, etc.). | ||
| 779 | 778 | ||
| 780 | 779 | :param rev: | |
| 781 | 780 | At least two revs to find the common ancestor for. | |
@@ -1030,7 +1029,7 @@ def active_branch(self) -> Head: | |||
| 1030 | 1029 | If HEAD is detached. | |
| 1031 | 1030 | ||
| 1032 | 1031 | :return: | |
| 1033 | - Head to the active branch | ||
| 1032 | + :class:`~git.refs.head.Head` to the active branch | ||
| 1034 | 1033 | """ | |
| 1035 | 1034 | # reveal_type(self.head.reference) # => Reference | |
| 1036 | 1035 | return self.head.reference | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -151,7 +151,7 @@ def name_to_object( | |||
| 151 | 151 | ||
| 152 | 152 | :param return_ref: | |
| 153 | 153 | If ``True``, and name specifies a reference, we will return the reference | |
| 154 | - instead of the object. Otherwise it will raise `~gitdb.exc.BadObject` o | ||
| 154 | + instead of the object. Otherwise it will raise `~gitdb.exc.BadObject` or | ||
| 155 | 155 | `~gitdb.exc.BadName`. | |
| 156 | 156 | """ | |
| 157 | 157 | hexsha: Union[None, str, bytes] = None | |
| Back | FazBrowse Home | New Git URL |
0 commit comments