Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf372187

Browse files
committed
Make subodule a forward ref in Index.base3
1 parentaf7cee5 commitf372187

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎git/index/base.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ def _to_relative_path(self, path: PathLike) -> PathLike:
593593
raiseValueError("Absolute path %r is not in git repository at %r"% (path,self.repo.working_tree_dir))
594594
returnos.path.relpath(path,self.repo.working_tree_dir)
595595

596-
def_preprocess_add_items(self,items:Sequence[Union[PathLike,Blob,BaseIndexEntry,Submodule]]
596+
def_preprocess_add_items(self,items:Sequence[Union[PathLike,Blob,BaseIndexEntry,'Submodule']]
597597
)->Tuple[List[PathLike],List[BaseIndexEntry]]:
598598
""" Split the items into two lists of path strings and BaseEntries. """
599599
paths= []
@@ -664,7 +664,7 @@ def _entries_for_paths(self, paths: List[str], path_rewriter: Callable, fprogres
664664
# END path handling
665665
returnentries_added
666666

667-
defadd(self,items:Sequence[Union[PathLike,Blob,BaseIndexEntry,Submodule]],force:bool=True,
667+
defadd(self,items:Sequence[Union[PathLike,Blob,BaseIndexEntry,'Submodule']],force:bool=True,
668668
fprogress:Callable=lambda*args:None,path_rewriter:Callable=None,
669669
write:bool=True,write_extension_data:bool=False)->List[BaseIndexEntry]:
670670
"""Add files from the working tree, specific blobs or BaseIndexEntries

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2026 Movatter.jp