File tree Expand file tree Collapse file tree 2 files changed +18
-16
lines changed Expand file tree Collapse file tree 2 files changed +18
-16
lines changed Original file line number Diff line number Diff line change 55
66from __future__ import annotations
77
8+ __all__ = ("Repo" ,)
9+
810import gc
911import logging
1012import os
9294
9395_logger = logging .getLogger (__name__ )
9496
95- __all__ = ("Repo" ,)
96-
9797
9898class BlameEntry (NamedTuple ):
9999 commit : Dict [str , Commit ]
Original file line number Diff line number Diff line change 55
66from __future__ import annotations
77
8+ __all__ = (
9+ "rev_parse" ,
10+ "is_git_dir" ,
11+ "touch" ,
12+ "find_submodule_git_dir" ,
13+ "name_to_object" ,
14+ "short_to_long" ,
15+ "deref_tag" ,
16+ "to_commit" ,
17+ "find_worktree_git_dir" ,
18+ )
19+
820import os
921import os .path as osp
1022from pathlib import Path
1123import stat
1224from string import digits
1325
26+ from gitdb .exc import BadName , BadObject
27+
1428from git .cmd import Git
1529from git .exc import WorkTreeRepositoryUnsupported
1630from git .objects import Object
1731from git .refs import SymbolicReference
18- from git .util import hex_to_bin , bin_to_hex , cygpath
19- from gitdb .exc import BadName , BadObject
32+ from git .util import cygpath , bin_to_hex , hex_to_bin
2033
2134# Typing ----------------------------------------------------------------------
2235
2942 from git .objects import Commit , TagObject
3043 from git .refs .reference import Reference
3144 from git .refs .tag import Tag
45+
3246 from .base import Repo
3347
3448# ----------------------------------------------------------------------------
3549
36- __all__ = (
37- "rev_parse" ,
38- "is_git_dir" ,
39- "touch" ,
40- "find_submodule_git_dir" ,
41- "name_to_object" ,
42- "short_to_long" ,
43- "deref_tag" ,
44- "to_commit" ,
45- "find_worktree_git_dir" ,
46- )
47-
4850
4951def touch (filename : str ) -> str :
5052 with open (filename , "ab" ):
You can’t perform that action at this time.
0 commit comments