@@ -387,7 +387,7 @@ def heads(self) -> "IterableList[Head]":
387387 def references (self ) -> "IterableList[Reference]" :
388388 """A list of Reference objects representing tags, heads and remote references.
389389
390- :return: IterableList(Reference, ...)
390+ :return: ``git. IterableList(Reference, ...)``
391391 """
392392 return Reference .list_items (self )
393393
@@ -400,11 +400,11 @@ def references(self) -> "IterableList[Reference]":
400400 @property
401401 def index (self ) -> "IndexFile" :
402402 """
403- :return: :class:`IndexFile < git.index.base.IndexFile> ` representing this
404- repository's index.
403+ :return: A :class:`~ git.index.base.IndexFile` representing this repository's
404+ index.
405405
406406 :note: This property can be expensive, as the returned
407- :class:`IndexFile < git.index.base.IndexFile> ` will be reinitialized.
407+ :class:`~ git.index.base.IndexFile` will be reinitialized.
408408 It is recommended to reuse the object.
409409 """
410410 return IndexFile (self )
@@ -520,7 +520,7 @@ def create_head(
520520 :note: For more documentation, please see the
521521 :meth:`Head.create <git.refs.head.Head.create>` method.
522522
523- :return: Newly created :class:`Head < git.refs.head.Head> ` Reference
523+ :return: Newly created :class:`~ git.refs.head.Head` Reference
524524 """
525525 return Head .create (self , path , commit , logmsg , force )
526526
@@ -544,7 +544,7 @@ def create_tag(
544544 :note: For more documentation, please see the
545545 :meth:`TagReference.create <git.refs.tag.TagReference.create>` method.
546546
547- :return: :class:`TagReference < git.refs.tag.TagReference> ` object
547+ :return: :class:`~ git.refs.tag.TagReference` object
548548 """
549549 return TagReference .create (self , path , ref , message , force , ** kwargs )
550550
@@ -558,7 +558,7 @@ def create_remote(self, name: str, url: str, **kwargs: Any) -> Remote:
558558 For more information, please see the documentation of the
559559 :meth:`Remote.create <git.remote.Remote.create>` method.
560560
561- :return: :class:`Remote < git.remote.Remote> ` reference
561+ :return: :class:`~ git.remote.Remote` reference
562562 """
563563 return Remote .create (self , name , url , ** kwargs )
564564
@@ -599,8 +599,8 @@ def config_reader(
599599 ) -> GitConfigParser :
600600 """
601601 :return:
602- :class:`GitConfigParser < git.config.GitConfigParser> ` allowing to read the
603- full git configuration, but not to write it.
602+ :class:`~ git.config.GitConfigParser` allowing to read the full git
603+ configuration, but not to write it.
604604
605605 The configuration will include values from the system, user and repository
606606 configuration files.
@@ -633,11 +633,10 @@ def _config_reader(
633633 def config_writer (self , config_level : Lit_config_levels = "repository" ) -> GitConfigParser :
634634 """
635635 :return:
636- A :class:`GitConfigParser <git.config.GitConfigParser>` allowing to write
637- values of the specified configuration file level. Config writers should be
638- retrieved, used to change the configuration, and written right away as they
639- will lock the configuration file in question and prevent other's to write
640- it.
636+ A :class:`~git.config.GitConfigParser` allowing to write values of the
637+ specified configuration file level. Config writers should be retrieved, used
638+ to change the configuration, and written right away as they will lock the
639+ configuration file in question and prevent other's to write it.
641640
642641 :param config_level:
643642 One of the following values:
@@ -720,10 +719,10 @@ def merge_base(self, *rev: TBD, **kwargs: Any) -> List[Union[Commit_ish, None]]:
720719 :param rev: At least two revs to find the common ancestor for.
721720 :param kwargs: Additional arguments to be passed to the
722721 ``repo.git.merge_base()`` command which does all the work.
723- :return: A list of :class:`Commit < git.objects.commit.Commit> ` objects. If
724- ``--all`` was not passed as a keyword argument, the list will have at max
725- one :class:`Commit < git.objects.commit.Commit> `, or is empty if no common
726- merge base exists.
722+ :return: A list of :class:`~ git.objects.commit.Commit` objects. If ``--all`` was
723+ not passed as a keyword argument, the list will have at max one
724+ :class:`~ git.objects.commit.Commit`, or is empty if no common merge base
725+ exists.
727726 :raises ValueError: If not at least two revs are provided.
728727 """
729728 if len (rev ) < 2 :
0 commit comments