@@ -426,7 +426,7 @@ def create_head(self, path: PathLike, commit: str = 'HEAD',
426426 For more documentation, please see the Head.create method.
427427
428428 :return: newly created Head Reference"""
429- return Head .create (self , path , commit , force , logmsg )
429+ return Head .create (self , path , commit , logmsg , force )
430430
431431 def delete_head (self , * heads : 'SymbolicReference' , ** kwargs : Any ) -> None :
432432 """Delete the given heads
@@ -518,7 +518,7 @@ def config_writer(self, config_level: Lit_config_levels = "repository") -> GitCo
518518 repository = configuration file for this repository only"""
519519 return GitConfigParser (self ._get_config_path (config_level ), read_only = False , repo = self )
520520
521- def commit (self , rev : Optional [str ] = None
521+ def commit (self , rev : Union [str , Commit_ish , None ] = None
522522 ) -> Commit :
523523 """The Commit object for the specified revision
524524
@@ -551,7 +551,8 @@ def tree(self, rev: Union[Tree_ish, str, None] = None) -> 'Tree':
551551 return self .head .commit .tree
552552 return self .rev_parse (str (rev ) + "^{tree}" )
553553
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 ]] = '' ,
555556 ** kwargs : Any ) -> Iterator [Commit ]:
556557 """A list of Commit objects representing the history of a given ref/commit
557558
0 commit comments