class documentation
class SwiftInfoRefsContainer(InfoRefsContainer):
Manage references in info/refs object.
Method | __init__ |
Undocumented |
Method | allkeys |
All refs present in this container. |
Method | remove |
Remove a refname only if it currently equals old_ref. |
Method | set |
Set a refname to new_ref only if it currently equals old_ref. |
Instance Variable | filename |
Undocumented |
Instance Variable | scon |
Undocumented |
Instance Variable | store |
Undocumented |
Method | _load |
Undocumented |
Method | _write |
Undocumented |
Inherited from InfoRefsContainer
:
Method | get |
Get contents of the packed-refs file. |
Method | get |
Return the cached peeled value of a ref, if available. |
Method | read |
Read a loose reference and return its contents. |
Instance Variable | _peeled |
Undocumented |
Instance Variable | _refs |
Undocumented |
Inherited from RefsContainer
(via InfoRefsContainer
):
Method | __contains__ |
Undocumented |
Method | __delitem__ |
Remove a refname. |
Method | __getitem__ |
Get the SHA1 for a reference name. |
Method | __iter__ |
Undocumented |
Method | __setitem__ |
Set a reference name to point to the given SHA1. |
Method | add |
Add a new reference only if it does not already exist. |
Method | as |
Return the contents of this container as a dictionary. |
Method | follow |
Follow a reference name. |
Method | get |
Get a dict with all symrefs in this container. |
Method | import |
Undocumented |
Method | keys |
Refs present in this container. |
Method | read |
Read a reference without following any references. |
Method | set |
Make a ref point at another ref. |
Method | subkeys |
Refs present in this container under a base. |
Method | _check |
Ensure a refname is valid and lives in refs or is HEAD. |
Method | _log |
Undocumented |
Instance Variable | _logger |
Undocumented |
overrides
dulwich.refs.RefsContainer.set_if_equals
Set a refname to new_ref only if it currently equals old_ref.