@@ -225,11 +225,11 @@ def write(
225225
226226 :param ignore_extension_data:
227227 If ``True``, the TREE type extension data read in the index will not be
228- written to disk. NOTE that no extension data is actually written.
229- Use this if you have altered the index and would like to use
230- `` git write-tree`` afterwards to create a tree representing your written
231- changes. If this data is present in the written index, ``git write-tree``
232- will instead write the stored/cached tree.
228+ written to disk. NOTE that no extension data is actually written. Use this
229+ if you have altered the index and would like to use
230+ :manpage:` git- write-tree(1)` afterwards to create a tree representing your
231+ written changes. If this data is present in the written index,
232+ :manpage:`git-write-tree(1)` will instead write the stored/cached tree.
233233 Alternatively, use :meth:`write_tree` to handle this case automatically.
234234 """
235235 # Make sure we have our entries read before getting a write lock.
@@ -343,7 +343,7 @@ def from_tree(cls, repo: "Repo", *treeish: Treeish, **kwargs: Any) -> "IndexFile
343343 tree, tree 3 is the 'other' one.
344344
345345 :param kwargs:
346- Additional arguments passed to `` git read-tree` `.
346+ Additional arguments passed to :manpage:` git- read-tree(1) `.
347347
348348 :return:
349349 New :class:`IndexFile` instance. It will point to a temporary index location
@@ -355,9 +355,9 @@ def from_tree(cls, repo: "Repo", *treeish: Treeish, **kwargs: Any) -> "IndexFile
355355 automatically resolve more cases in a commonly correct manner. Specify
356356 ``trivial=True`` as a keyword argument to override that.
357357
358- As the underlying `` git read-tree`` command takes into account the current
359- index, it will be temporarily moved out of the way to prevent any unexpected
360- interference.
358+ As the underlying :manpage:` git- read-tree(1)` command takes into account the
359+ current index, it will be temporarily moved out of the way to prevent any
360+ unexpected interference.
361361 """
362362 if len (treeish ) == 0 or len (treeish ) > 3 :
363363 raise ValueError ("Please specify between 1 and 3 treeish, got %i" % len (treeish ))
@@ -470,10 +470,10 @@ def _write_path_to_stdin(
470470 In that case, it will return ``None``.
471471
472472 :note:
473- There is a bug in git-update-index that prevents it from sending reports
474- just in time. This is why we have a version that tries to read stdout and
475- one which doesn't. In fact, the stdout is not important as the piped-in
476- files are processed anyway and just in time.
473+ There is a bug in :manpage:` git-update-index(1)` that prevents it from
474+ sending reports just in time. This is why we have a version that tries to
475+ read stdout and one which doesn't. In fact, the stdout is not important as
476+ the piped-in files are processed anyway and just in time.
477477
478478 :note:
479479 Newlines are essential here, git's behaviour is somewhat inconsistent on
@@ -782,11 +782,12 @@ def add(
782782 directories like ``lib``, which will add all the files within the
783783 directory and subdirectories.
784784
785- This equals a straight `` git add` `.
785+ This equals a straight :manpage:` git- add(1) `.
786786
787787 They are added at stage 0.
788788
789- - :class:~`git.objects.blob.Blob` or :class:`~git.objects.submodule.base.Submodule` object
789+ - :class:~`git.objects.blob.Blob` or
790+ :class:`~git.objects.submodule.base.Submodule` object
790791
791792 Blobs are added as they are assuming a valid mode is set.
792793
@@ -818,8 +819,8 @@ def add(
818819 :param force:
819820 **CURRENTLY INEFFECTIVE**
820821 If ``True``, otherwise ignored or excluded files will be added anyway. As
821- opposed to the `` git add`` command, we enable this flag by default as the
822- API user usually wants the item to be added even though they might be
822+ opposed to the :manpage:` git- add(1)` command, we enable this flag by default
823+ as the API user usually wants the item to be added even though they might be
823824 excluded.
824825
825826 :param fprogress:
@@ -850,8 +851,8 @@ def add(
850851 :param write_extension_data:
851852 If ``True``, extension data will be written back to the index. This can lead
852853 to issues in case it is containing the 'TREE' extension, which will cause
853- the `` git commit`` command to write an old tree, instead of a new one
854- representing the now changed index.
854+ the :manpage:` git- commit(1)` command to write an old tree, instead of a new
855+ one representing the now changed index.
855856
856857 This doesn't matter if you use :meth:`IndexFile.commit`, which ignores the
857858 'TREE' extension altogether. You should set it to ``True`` if you intend to
@@ -1008,8 +1009,8 @@ def remove(
10081009 uncommitted changes in it.
10091010
10101011 :param kwargs:
1011- Additional keyword arguments to be passed to `` git rm`` , such as ``r`` to
1012- allow recursive removal.
1012+ Additional keyword arguments to be passed to :manpage:` git-rm(1)` , such as
1013+ ``r`` to allow recursive removal.
10131014
10141015 :return:
10151016 List(path_string, ...) list of repository relative paths that have been
@@ -1058,7 +1059,7 @@ def move(
10581059 skipped.
10591060
10601061 :param kwargs:
1061- Additional arguments you would like to pass to `` git mv` `, such as
1062+ Additional arguments you would like to pass to :manpage:` git-mv(1) `, such as
10621063 ``dry_run`` or ``force``.
10631064
10641065 :return:
@@ -1224,7 +1225,7 @@ def checkout(
12241225 prior and after a file has been checked out.
12251226
12261227 :param kwargs:
1227- Additional arguments to be passed to `` git checkout-index` `.
1228+ Additional arguments to be passed to :manpage:` git- checkout-index(1) `.
12281229
12291230 :return:
12301231 Iterable yielding paths to files which have been checked out and are
@@ -1243,8 +1244,8 @@ def checkout(
12431244 The checkout is limited to checking out the files in the index. Files which
12441245 are not in the index anymore and exist in the working tree will not be
12451246 deleted. This behaviour is fundamentally different to ``head.checkout``,
1246- i.e. if you want `` git checkout`` like behaviour, use ``head.checkout``
1247- instead of ``index.checkout``.
1247+ i.e. if you want :manpage:` git- checkout(1)`- like behaviour, use
1248+ ``head.checkout`` instead of ``index.checkout``.
12481249 """
12491250 args = ["--index" ]
12501251 if force :
@@ -1416,14 +1417,14 @@ def reset(
14161417 raised.
14171418
14181419 :param kwargs:
1419- Additional keyword arguments passed to `` git reset` `.
1420+ Additional keyword arguments passed to :manpage:` git- reset(1) `.
14201421
14211422 :note:
14221423 :meth:`IndexFile.reset`, as opposed to
14231424 :meth:`HEAD.reset <git.refs.head.HEAD.reset>`, will not delete any files in
14241425 order to maintain a consistent working tree. Instead, it will just check out
14251426 the files according to their state in the index.
1426- If you want `` git reset` `-like behaviour, use
1427+ If you want :manpage:` git- reset(1) `-like behaviour, use
14271428 :meth:`HEAD.reset <git.refs.head.HEAD.reset>` instead.
14281429
14291430 :return:
0 commit comments