@@ -387,7 +387,7 @@ def heads(self) -> "IterableList[Head]":
387
387
def references (self ) -> "IterableList[Reference]" :
388
388
"""A list of Reference objects representing tags, heads and remote references.
389
389
390
- :return: IterableList(Reference, ...)
390
+ :return: ``git. IterableList(Reference, ...)``
391
391
"""
392
392
return Reference .list_items (self )
393
393
@@ -400,11 +400,11 @@ def references(self) -> "IterableList[Reference]":
400
400
@property
401
401
def index (self ) -> "IndexFile" :
402
402
"""
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.
405
405
406
406
: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.
408
408
It is recommended to reuse the object.
409
409
"""
410
410
return IndexFile (self )
@@ -520,7 +520,7 @@ def create_head(
520
520
:note: For more documentation, please see the
521
521
:meth:`Head.create <git.refs.head.Head.create>` method.
522
522
523
- :return: Newly created :class:`Head < git.refs.head.Head> ` Reference
523
+ :return: Newly created :class:`~ git.refs.head.Head` Reference
524
524
"""
525
525
return Head .create (self , path , commit , logmsg , force )
526
526
@@ -544,7 +544,7 @@ def create_tag(
544
544
:note: For more documentation, please see the
545
545
:meth:`TagReference.create <git.refs.tag.TagReference.create>` method.
546
546
547
- :return: :class:`TagReference < git.refs.tag.TagReference> ` object
547
+ :return: :class:`~ git.refs.tag.TagReference` object
548
548
"""
549
549
return TagReference .create (self , path , ref , message , force , ** kwargs )
550
550
@@ -558,7 +558,7 @@ def create_remote(self, name: str, url: str, **kwargs: Any) -> Remote:
558
558
For more information, please see the documentation of the
559
559
:meth:`Remote.create <git.remote.Remote.create>` method.
560
560
561
- :return: :class:`Remote < git.remote.Remote> ` reference
561
+ :return: :class:`~ git.remote.Remote` reference
562
562
"""
563
563
return Remote .create (self , name , url , ** kwargs )
564
564
@@ -599,8 +599,8 @@ def config_reader(
599
599
) -> GitConfigParser :
600
600
"""
601
601
: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.
604
604
605
605
The configuration will include values from the system, user and repository
606
606
configuration files.
@@ -633,11 +633,10 @@ def _config_reader(
633
633
def config_writer (self , config_level : Lit_config_levels = "repository" ) -> GitConfigParser :
634
634
"""
635
635
: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.
641
640
642
641
:param config_level:
643
642
One of the following values:
@@ -720,10 +719,10 @@ def merge_base(self, *rev: TBD, **kwargs: Any) -> List[Union[Commit_ish, None]]:
720
719
:param rev: At least two revs to find the common ancestor for.
721
720
:param kwargs: Additional arguments to be passed to the
722
721
``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.
727
726
:raises ValueError: If not at least two revs are provided.
728
727
"""
729
728
if len (rev ) < 2 :
0 commit comments