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

Commitb76b991

Browse files
authored
Update base.py
1 parent9b9bfc2 commitb76b991

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎git/repo/base.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -422,14 +422,14 @@ def _to_full_tag_path(path):
422422

423423
defcreate_head(self,path:PathLike,commit:str='HEAD',
424424
force:bool=False,logmsg:Optional[str]=None
425-
)->Head:
425+
)->'Head':
426426
"""Create a new head within the repository.
427427
For more documentation, please see the Head.create method.
428428
429429
:return: newly created Head Reference"""
430430
returnHead.create(self,path,commit,logmsg,force)
431431

432-
defdelete_head(self,*heads:'SymbolicReference',**kwargs:Any)->None:
432+
defdelete_head(self,*heads:'Head',**kwargs:Any)->None:
433433
"""Delete the given heads
434434
435435
:param kwargs: Additional keyword arguments to be passed to git-branch"""
@@ -788,10 +788,10 @@ def ignored(self, *paths: PathLike) -> List[PathLike]:
788788
returnproc.replace("\\\\","\\").replace('"',"").split("\n")
789789

790790
@property
791-
defactive_branch(self)->'SymbolicReference':
791+
defactive_branch(self)->Head:
792792
"""The name of the currently active branch.
793-
794793
:return: Head to the active branch"""
794+
# reveal_type(self.head.reference) # => Reference
795795
returnself.head.reference
796796

797797
defblame_incremental(self,rev:TBD,file:TBD,**kwargs:Any)->Optional[Iterator['BlameEntry']]:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp