| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent b8a25df commit e49327d
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,38 +5,6 @@ | |||
| 5 | 5 | ||
| 6 | 6 | # @PydevCodeAnalysisIgnore | |
| 7 | 7 | ||
| 8 | - __version__ = "git" | ||
| 9 | - | ||
| 10 | - from typing import List, Optional, Sequence, Tuple, Union, TYPE_CHECKING | ||
| 11 | - | ||
| 12 | - from gitdb.util import to_hex_sha | ||
| 13 | - from git.exc import * # noqa: F403 # @NoMove @IgnorePep8 | ||
| 14 | - from git.types import PathLike | ||
| 15 | - | ||
| 16 | - try: | ||
| 17 | - from git.compat import safe_decode # @NoMove @IgnorePep8 | ||
| 18 | - from git.config import GitConfigParser # @NoMove @IgnorePep8 | ||
| 19 | - from git.objects import * # noqa: F403 # @NoMove @IgnorePep8 | ||
| 20 | - from git.refs import * # noqa: F403 # @NoMove @IgnorePep8 | ||
| 21 | - from git.diff import * # noqa: F403 # @NoMove @IgnorePep8 | ||
| 22 | - from git.db import * # noqa: F403 # @NoMove @IgnorePep8 | ||
| 23 | - from git.cmd import Git # @NoMove @IgnorePep8 | ||
| 24 | - from git.repo import Repo # @NoMove @IgnorePep8 | ||
| 25 | - from git.remote import * # noqa: F403 # @NoMove @IgnorePep8 | ||
| 26 | - from git.index import * # noqa: F403 # @NoMove @IgnorePep8 | ||
| 27 | - from git.util import ( # @NoMove @IgnorePep8 | ||
| 28 | - LockFile, | ||
| 29 | - BlockingLockFile, | ||
| 30 | - Stats, | ||
| 31 | - Actor, | ||
| 32 | - remove_password_if_present, | ||
| 33 | - rmtree, | ||
| 34 | - ) | ||
| 35 | - except GitError as _exc: # noqa: F405 | ||
| 36 | - raise ImportError("%s: %s" % (_exc.__class__.__name__, _exc)) from _exc | ||
| 37 | - | ||
| 38 | - # __all__ must be statically defined by py.typed support | ||
| 39 | - # __all__ = [name for name, obj in locals().items() if not (name.startswith("_") or inspect.ismodule(obj))] | ||
| 40 | 8 | __all__ = [ # noqa: F405 | |
| 41 | 9 | "Actor", | |
| 42 | 10 | "AmbiguousObjectName", | |
@@ -109,12 +77,43 @@ | |||
| 109 | 77 | "UnsupportedOperation", | |
| 110 | 78 | "UpdateProgress", | |
| 111 | 79 | "WorkTreeRepositoryUnsupported", | |
| 80 | + "refresh", | ||
| 112 | 81 | "remove_password_if_present", | |
| 113 | 82 | "rmtree", | |
| 114 | 83 | "safe_decode", | |
| 115 | 84 | "to_hex_sha", | |
| 116 | 85 | ] | |
| 117 | 86 | ||
| 87 | + __version__ = "git" | ||
| 88 | + | ||
| 89 | + from typing import List, Optional, Sequence, Tuple, Union, TYPE_CHECKING | ||
| 90 | + | ||
| 91 | + from gitdb.util import to_hex_sha | ||
| 92 | + from git.exc import * # noqa: F403 # @NoMove @IgnorePep8 | ||
| 93 | + from git.types import PathLike | ||
| 94 | + | ||
| 95 | + try: | ||
| 96 | + from git.compat import safe_decode # @NoMove @IgnorePep8 | ||
| 97 | + from git.config import GitConfigParser # @NoMove @IgnorePep8 | ||
| 98 | + from git.objects import * # noqa: F403 # @NoMove @IgnorePep8 | ||
| 99 | + from git.refs import * # noqa: F403 # @NoMove @IgnorePep8 | ||
| 100 | + from git.diff import * # noqa: F403 # @NoMove @IgnorePep8 | ||
| 101 | + from git.db import * # noqa: F403 # @NoMove @IgnorePep8 | ||
| 102 | + from git.cmd import Git # @NoMove @IgnorePep8 | ||
| 103 | + from git.repo import Repo # @NoMove @IgnorePep8 | ||
| 104 | + from git.remote import * # noqa: F403 # @NoMove @IgnorePep8 | ||
| 105 | + from git.index import * # noqa: F403 # @NoMove @IgnorePep8 | ||
| 106 | + from git.util import ( # @NoMove @IgnorePep8 | ||
| 107 | + LockFile, | ||
| 108 | + BlockingLockFile, | ||
| 109 | + Stats, | ||
| 110 | + Actor, | ||
| 111 | + remove_password_if_present, | ||
| 112 | + rmtree, | ||
| 113 | + ) | ||
| 114 | + except GitError as _exc: # noqa: F405 | ||
| 115 | + raise ImportError("%s: %s" % (_exc.__class__.__name__, _exc)) from _exc | ||
| 116 | + | ||
| 118 | 117 | # { Initialize git executable path | |
| 119 | 118 | GIT_OK = None | |
| 120 | 119 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments