Make it explicit that Refspec objects are not for construction
This commit is contained in:
@@ -32,6 +32,10 @@ This class contains the data which is available to us during a fetch.
|
|||||||
The Refspec type
|
The Refspec type
|
||||||
===================
|
===================
|
||||||
|
|
||||||
|
Refspecs objects are not constructed directly, but returned by
|
||||||
|
:meth:`pygit2.Remote.get_refspec`. To create a new a refspec on a Remote, use
|
||||||
|
:meth:`pygit2.Remote.add_fetch` or :meth:`pygit2.Remote.add_push`.
|
||||||
|
|
||||||
.. autoclass:: pygit2.refspec.Refspec
|
.. autoclass:: pygit2.refspec.Refspec
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user