@@ -426,7 +426,7 @@ def create_head(self, path: PathLike, commit: str = 'HEAD',
426
426
For more documentation, please see the Head.create method.
427
427
428
428
:return: newly created Head Reference"""
429
- return Head .create (self , path , commit , force , logmsg )
429
+ return Head .create (self , path , commit , logmsg , force )
430
430
431
431
def delete_head (self , * heads : 'SymbolicReference' , ** kwargs : Any ) -> None :
432
432
"""Delete the given heads
@@ -518,7 +518,7 @@ def config_writer(self, config_level: Lit_config_levels = "repository") -> GitCo
518
518
repository = configuration file for this repository only"""
519
519
return GitConfigParser (self ._get_config_path (config_level ), read_only = False , repo = self )
520
520
521
- def commit (self , rev : Optional [str ] = None
521
+ def commit (self , rev : Union [str , Commit_ish , None ] = None
522
522
) -> Commit :
523
523
"""The Commit object for the specified revision
524
524
@@ -551,7 +551,8 @@ def tree(self, rev: Union[Tree_ish, str, None] = None) -> 'Tree':
551
551
return self .head .commit .tree
552
552
return self .rev_parse (str (rev ) + "^{tree}" )
553
553
554
- def iter_commits (self , rev : Optional [TBD ] = None , paths : Union [PathLike , Sequence [PathLike ]] = '' ,
554
+ def iter_commits (self , rev : Union [str , Commit , 'SymbolicReference' , None ] = None ,
555
+ paths : Union [PathLike , Sequence [PathLike ]] = '' ,
555
556
** kwargs : Any ) -> Iterator [Commit ]:
556
557
"""A list of Commit objects representing the history of a given ref/commit
557
558
0 commit comments