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

Commit11d91e2

Browse files
committed
Add remaining types to IndexFile ._preprocess_add_items() to .diff()
1 parent78d12aa commit11d91e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎git/index/base.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,8 @@ def _to_relative_path(self, path: PathLike) -> PathLike:
586586
raiseValueError("Absolute path %r is not in git repository at %r"% (path,self.repo.working_tree_dir))
587587
returnos.path.relpath(path,self.repo.working_tree_dir)
588588

589-
def_preprocess_add_items(self,items):
589+
def_preprocess_add_items(self,items:Sequence[Union[PathLike,Blob,BaseIndexEntry,Submodule]]
590+
)->Tuple[List[PathLike],List[BaseIndexEntry]]:
590591
""" Split the items into two lists of path strings and BaseEntries. """
591592
paths= []
592593
entries= []

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2026 Movatter.jp