module documentation
Object specification.
Exception |
|
The short id is ambiguous. |
Function | parse |
Parse a string referring to a single commit. |
Function | parse |
Parse a string referring to a range of commits. |
Function | parse |
Parse a string referring to an object. |
Function | parse |
Parse a string referring to a reference. |
Function | parse |
Parse a list of refspecs to a list of refs. |
Function | parse |
Parse a reftuple spec. |
Function | parse |
Parse a list of reftuple specs to a list of reftuples. |
Function | parse |
Parse a string referring to a tree. |
Function | scan |
Scan an object store for a short id. |
Function | to |
Undocumented |
Parse a string referring to a single commit.
Returns: A Commit object
Parameters | |
repo | A` Repo` object |
committish | A string referring to a single commit. |
Raises | |
KeyError | When the reference commits can not be found |
ValueError | If the range can not be parsed |
Parse a string referring to a range of commits.
Returns: An iterator over Commit
objects
Parameters | |
repo | A Repo object |
committishs | A string referring to a range of commits. |
Raises | |
KeyError | When the reference commits can not be found |
ValueError | If the range can not be parsed |
Parse a string referring to a reference.
Returns: A ref
Parameters | |
container | A RefsContainer object |
refspec | A string referring to a ref |
Raises | |
KeyError | If the ref can not be found |
Parse a list of refspecs to a list of refs.
Returns: A list of refs
Parameters | |
container | A RefsContainer object |
refspecs | A list of refspecs or a string |
Raises | |
KeyError | If one of the refs can not be found |
Parse a reftuple spec.
Returns: A tuple with left and right ref
Parameters | |
lh | A RefsContainer object |
rh | A RefsContainer object |
refspec | A string |
force | Undocumented |
Raises | |
KeyError | If one of the refs can not be found |
Parse a list of reftuple specs to a list of reftuples.
Returns: A list of refs
Parameters | |
lh | A RefsContainer object |
rh | A RefsContainer object |
refspecs:Union[ | A list of refspecs or a string |
force:bool | Force overwriting for all reftuples |
Raises | |
KeyError | If one of the refs can not be found |