| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 432ec72 commit 5ca5844
8 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -699,7 +699,7 @@ def wait(self, stderr: Union[None, str, bytes] = b"") -> int: | |||
| 699 | 699 | May deadlock if output or error pipes are used and not handled | |
| 700 | 700 | separately. | |
| 701 | 701 | ||
| 702 | - :raise GitCommandError: | ||
| 702 | + :raise git.exc.GitCommandError: | ||
| 703 | 703 | If the return status is not 0. | |
| 704 | 704 | """ | |
| 705 | 705 | if stderr is None: | |
@@ -1091,7 +1091,7 @@ def execute( | |||
| 1091 | 1091 | Note that git is executed with ``LC_MESSAGES="C"`` to ensure consistent | |
| 1092 | 1092 | output regardless of system language. | |
| 1093 | 1093 | ||
| 1094 | - :raise GitCommandError: | ||
| 1094 | + :raise git.exc.GitCommandError: | ||
| 1095 | 1095 | ||
| 1096 | 1096 | :note: | |
| 1097 | 1097 | If you add additional keyword arguments to the signature of this method, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -56,13 +56,13 @@ def partial_to_complete_sha_hex(self, partial_hexsha: str) -> bytes: | |||
| 56 | 56 | """ | |
| 57 | 57 | :return: Full binary 20 byte sha from the given partial hexsha | |
| 58 | 58 | ||
| 59 | - :raise AmbiguousObjectName: | ||
| 59 | + :raise gitdb.exc.AmbiguousObjectName: | ||
| 60 | 60 | ||
| 61 | - :raise BadObject: | ||
| 61 | + :raise gitdb.exc.BadObject: | ||
| 62 | 62 | ||
| 63 | 63 | :note: | |
| 64 | - Currently we only raise :class:`BadObject` as git does not communicate | ||
| 65 | - ambiguous objects separately. | ||
| 64 | + Currently we only raise :class:`~gitdb.exc.BadObject` as git does not | ||
| 65 | + communicate ambiguous objects separately. | ||
| 66 | 66 | """ | |
| 67 | 67 | try: | |
| 68 | 68 | hexsha, _typename, _size = self._git.get_object_header(partial_hexsha) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -284,7 +284,7 @@ def merge_tree(self, rhs: Treeish, base: Union[None, Treeish] = None) -> "IndexF | |||
| 284 | 284 | self (containing the merge and possibly unmerged entries in case of | |
| 285 | 285 | conflicts) | |
| 286 | 286 | ||
| 287 | - :raise GitCommandError: | ||
| 287 | + :raise git.exc.GitCommandError: | ||
| 288 | 288 | If there is a merge conflict. The error will be raised at the first | |
| 289 | 289 | conflicting path. If you want to have proper merge resolution to be done by | |
| 290 | 290 | yourself, you have to commit the changed index (or make a valid tree from | |
@@ -624,7 +624,7 @@ def write_tree(self) -> Tree: | |||
| 624 | 624 | :raise ValueError: | |
| 625 | 625 | If there are no entries in the cache. | |
| 626 | 626 | ||
| 627 | - :raise UnmergedEntriesError: | ||
| 627 | + :raise git.exc.UnmergedEntriesError: | ||
| 628 | 628 | """ | |
| 629 | 629 | # We obtain no lock as we just flush our contents to disk as tree. | |
| 630 | 630 | # If we are a new index, the entries access will load our data accordingly. | |
@@ -1077,7 +1077,7 @@ def move( | |||
| 1077 | 1077 | :raise ValueError: | |
| 1078 | 1078 | If only one item was given. | |
| 1079 | 1079 | ||
| 1080 | - :raise GitCommandError: | ||
| 1080 | + :raise git.exc.GitCommandError: | ||
| 1081 | 1081 | If git could not handle your request. | |
| 1082 | 1082 | """ | |
| 1083 | 1083 | args = [] | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -88,7 +88,7 @@ def run_commit_hook(name: str, index: "IndexFile", *args: str) -> None: | |||
| 88 | 88 | :param args: | |
| 89 | 89 | Arguments passed to hook file. | |
| 90 | 90 | ||
| 91 | - :raise HookExecutionError: | ||
| 91 | + :raise git.exc.HookExecutionError: | ||
| 92 | 92 | """ | |
| 93 | 93 | hp = hook_path(name, index.repo.git_dir) | |
| 94 | 94 | if not os.access(hp, os.X_OK): | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1106,7 +1106,7 @@ def remove( | |||
| 1106 | 1106 | Doesn't work atomically, as failure to remove any part of the submodule will | |
| 1107 | 1107 | leave an inconsistent state. | |
| 1108 | 1108 | ||
| 1109 | - :raise InvalidGitRepositoryError: | ||
| 1109 | + :raise git.exc.InvalidGitRepositoryError: | ||
| 1110 | 1110 | Thrown if the repository cannot be deleted. | |
| 1111 | 1111 | ||
| 1112 | 1112 | :raise OSError: | |
@@ -1382,7 +1382,7 @@ def module(self) -> "Repo": | |||
| 1382 | 1382 | """ | |
| 1383 | 1383 | :return: Repo instance initialized from the repository at our submodule path | |
| 1384 | 1384 | ||
| 1385 | - :raise InvalidGitRepositoryError: | ||
| 1385 | + :raise git.exc.InvalidGitRepositoryError: | ||
| 1386 | 1386 | If a repository was not available. | |
| 1387 | 1387 | This could also mean that it was not yet initialized. | |
| 1388 | 1388 | """ | |
@@ -1454,7 +1454,7 @@ def branch(self) -> "Head": | |||
| 1454 | 1454 | :return: | |
| 1455 | 1455 | The branch instance that we are to checkout | |
| 1456 | 1456 | ||
| 1457 | - :raise InvalidGitRepositoryError: | ||
| 1457 | + :raise git.exc.InvalidGitRepositoryError: | ||
| 1458 | 1458 | If our module is not yet checked out. | |
| 1459 | 1459 | """ | |
| 1460 | 1460 | return mkhead(self.module(), self._branch_path) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -801,7 +801,7 @@ def create(cls, repo: "Repo", name: str, url: str, allow_unsafe_protocols: bool | |||
| 801 | 801 | :return: | |
| 802 | 802 | New :class:`Remote` instance | |
| 803 | 803 | ||
| 804 | - :raise GitCommandError: | ||
| 804 | + :raise git.exc.GitCommandError: | ||
| 805 | 805 | In case an origin with that name already exists. | |
| 806 | 806 | """ | |
| 807 | 807 | scmd = "add" | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -202,12 +202,12 @@ def __init__( | |||
| 202 | 202 | Please note that this was the default behaviour in older versions of | |
| 203 | 203 | GitPython, which is considered a bug though. | |
| 204 | 204 | ||
| 205 | - :raise InvalidGitRepositoryError: | ||
| 205 | + :raise git.exc.InvalidGitRepositoryError: | ||
| 206 | 206 | ||
| 207 | - :raise NoSuchPathError: | ||
| 207 | + :raise git.exc.NoSuchPathError: | ||
| 208 | 208 | ||
| 209 | 209 | :return: | |
| 210 | - git.Repo | ||
| 210 | + :class:`Repo` | ||
| 211 | 211 | """ | |
| 212 | 212 | ||
| 213 | 213 | epath = path or os.getenv("GIT_DIR") | |
@@ -893,7 +893,7 @@ def _set_alternates(self, alts: List[str]) -> None: | |||
| 893 | 893 | The array of string paths representing the alternates at which git should | |
| 894 | 894 | look for objects, i.e. ``/home/user/repo/.git/objects``. | |
| 895 | 895 | ||
| 896 | - :raise NoSuchPathError: | ||
| 896 | + :raise git.exc.NoSuchPathError: | ||
| 897 | 897 | ||
| 898 | 898 | :note: | |
| 899 | 899 | The method does not check for the existence of the paths in `alts`, as the | |
@@ -1553,7 +1553,7 @@ def archive( | |||
| 1553 | 1553 | repository-relative path to a directory or file to place into the archive, | |
| 1554 | 1554 | or a list or tuple of multiple paths. | |
| 1555 | 1555 | ||
| 1556 | - :raise GitCommandError: | ||
| 1556 | + :raise git.exc.GitCommandError: | ||
| 1557 | 1557 | If something went wrong. | |
| 1558 | 1558 | ||
| 1559 | 1559 | :return: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -59,7 +59,7 @@ def touch(filename: str) -> str: | |||
| 59 | 59 | def is_git_dir(d: "PathLike") -> bool: | |
| 60 | 60 | """This is taken from the git setup.c:is_git_directory function. | |
| 61 | 61 | ||
| 62 | - :raise WorkTreeRepositoryUnsupported: | ||
| 62 | + :raise git.exc.WorkTreeRepositoryUnsupported: | ||
| 63 | 63 | If it sees a worktree directory. It's quite hacky to do that here, but at least | |
| 64 | 64 | clearly indicates that we don't support it. There is the unlikely danger to | |
| 65 | 65 | throw if we see directories which just look like a worktree dir, but are none. | |
@@ -234,7 +234,7 @@ def rev_parse(repo: "Repo", rev: str) -> Union["Commit", "Tag", "Tree", "Blob"]: | |||
| 234 | 234 | ``git rev-parse``-compatible revision specification as string. Please see | |
| 235 | 235 | http://www.kernel.org/pub/software/scm/git/docs/git-rev-parse.html for details. | |
| 236 | 236 | ||
| 237 | - :raise BadObject: | ||
| 237 | + :raise gitdb.exc.BadObject: | ||
| 238 | 238 | If the given revision could not be found. | |
| 239 | 239 | ||
| 240 | 240 | :raise ValueError: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments