| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 8197e90 commit 7545b80
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,10 +7,10 @@ | |||
| 7 | 7 | # @PydevCodeAnalysisIgnore | |
| 8 | 8 | from git.exc import * # @NoMove @IgnorePep8 | |
| 9 | 9 | import os | |
| 10 | - import sys | ||
| 11 | 10 | import os.path as osp | |
| 11 | + import sys | ||
| 12 | 12 | ||
| 13 | - from typing import Optional | ||
| 13 | + from typing import List, Optional, Sequence, Tuple, Union, TYPE_CHECKING | ||
| 14 | 14 | from git.types import PathLike | |
| 15 | 15 | ||
| 16 | 16 | __version__ = "git" | |
@@ -38,7 +38,10 @@ def _init_externals() -> None: | |||
| 38 | 38 | ||
| 39 | 39 | # { Imports | |
| 40 | 40 | ||
| 41 | + from gitdb.util import to_hex_sha | ||
| 42 | + | ||
| 41 | 43 | try: | |
| 44 | + from git.compat import safe_decode # @NoMove @IgnorePep8 | ||
| 42 | 45 | from git.config import GitConfigParser # @NoMove @IgnorePep8 | |
| 43 | 46 | from git.objects import * # @NoMove @IgnorePep8 | |
| 44 | 47 | from git.refs import * # @NoMove @IgnorePep8 | |
@@ -53,6 +56,7 @@ def _init_externals() -> None: | |||
| 53 | 56 | BlockingLockFile, | |
| 54 | 57 | Stats, | |
| 55 | 58 | Actor, | |
| 59 | + remove_password_if_present, | ||
| 56 | 60 | rmtree, | |
| 57 | 61 | ) | |
| 58 | 62 | except GitError as _exc: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,7 +5,34 @@ | |||
| 5 | 5 | # the BSD License: https://opensource.org/license/bsd-3-clause/ | |
| 6 | 6 | """ Module containing all exceptions thrown throughout the git package """ | |
| 7 | 7 | ||
| 8 | - from gitdb.exc import ( # noqa: @UnusedImport | ||
| 8 | + __all__ = [ | ||
| 9 | + # Defined in gitdb.exc: | ||
| 10 | + "AmbiguousObjectName", | ||
| 11 | + "BadName", | ||
| 12 | + "BadObject", | ||
| 13 | + "BadObjectType", | ||
| 14 | + "InvalidDBRoot", | ||
| 15 | + "ODBError", | ||
| 16 | + "ParseError", | ||
| 17 | + "UnsupportedOperation", | ||
| 18 | + # Introduced in this module: | ||
| 19 | + "GitError", | ||
| 20 | + "InvalidGitRepositoryError", | ||
| 21 | + "WorkTreeRepositoryUnsupported", | ||
| 22 | + "NoSuchPathError", | ||
| 23 | + "UnsafeProtocolError", | ||
| 24 | + "UnsafeOptionError", | ||
| 25 | + "CommandError", | ||
| 26 | + "GitCommandNotFound", | ||
| 27 | + "GitCommandError", | ||
| 28 | + "CheckoutError", | ||
| 29 | + "CacheError", | ||
| 30 | + "UnmergedEntriesError", | ||
| 31 | + "HookExecutionError", | ||
| 32 | + "RepositoryDirtyError", | ||
| 33 | + ] | ||
| 34 | + | ||
| 35 | + from gitdb.exc import ( | ||
| 9 | 36 | AmbiguousObjectName, | |
| 10 | 37 | BadName, | |
| 11 | 38 | BadObject, | |
@@ -14,7 +41,6 @@ | |||
| 14 | 41 | ODBError, | |
| 15 | 42 | ParseError, | |
| 16 | 43 | UnsupportedOperation, | |
| 17 | - to_hex_sha, | ||
| 18 | 44 | ) | |
| 19 | 45 | from git.compat import safe_decode | |
| 20 | 46 | from git.util import remove_password_if_present | |
| Back | FazBrowse Home | New Git URL |
0 commit comments