Struct libgitdit::issue::Issue
[−]
[src]
pub struct Issue<'r> { /* fields omitted */ }
Issue handle
Instances of this type represent single issues. Issues reside in repositories and are uniquely identified by an id.
Methods
impl<'r> Issue<'r>
[src]
fn new(repo: &'r Repository, id: Oid) -> Result<Self>
[src]
Create a new handle for an issue with a given id
fn id(&self) -> Oid
[src]
Get the issue's id
fn initial_message(&self) -> Result<Commit<'r>>
[src]
Get the issue's initial message
fn heads(&self) -> Result<References<'r>>
[src]
Get possible heads of the issue
Returns the head references from both the local repository and remotes for this issue.
fn local_head(&self) -> Result<Reference<'r>>
[src]
Get the local issue head for the issue
Returns the head reference of the issue from the local repository, if present.
fn local_refs(&self, ref_type: IssueRefType) -> Result<References<'r>>
[src]
Get local references for the issue
Return all references of a specific type associated with the issue from the local repository.
fn remote_refs(&self, ref_type: IssueRefType) -> Result<References<'r>>
[src]
Get remote references for the issue
Return all references of a specific type associated with the issue from all remote repositories.
fn all_refs(&self, ref_type: IssueRefType) -> Result<References<'r>>
[src]
Get references for the issue
Return all references of a specific type associated with the issue from both the local and remote repositories.
fn messages(&self) -> Result<Messages<'r>>
[src]
Get all Messages of the issue
The sorting of the underlying revwalk will be set to "topological".
fn messages_from(&self, message: Oid) -> Result<Messages<'r>>
[src]
Get Messages of the issue starting from a specific one
The Messages iterator returned will return all first parents up to and includingthe initial message of the issue.
fn terminated_messages(&self) -> Result<Messages<'r>>
[src]
Prepare a Messages iterator which will terminate at the initial message
fn add_message<'a, A, I, J>(
&self,
author: &Signature,
committer: &Signature,
message: A,
tree: &Tree,
parents: I
) -> Result<Commit<'r>> where
A: AsRef<str>,
I: IntoIterator<Item = &'a Commit<'a>, IntoIter = J>,
J: Iterator<Item = &'a Commit<'a>>,
[src]
&self,
author: &Signature,
committer: &Signature,
message: A,
tree: &Tree,
parents: I
) -> Result<Commit<'r>> where
A: AsRef<str>,
I: IntoIterator<Item = &'a Commit<'a>, IntoIter = J>,
J: Iterator<Item = &'a Commit<'a>>,
Add a new message to the issue
Adds a new message to the issue. Also create a leaf reference for the new message. Returns the message.
fn update_head(&self, message: Oid, replace: bool) -> Result<Reference<'r>>
[src]
Update the local head reference of the issue
Updates the local head reference of the issue to the provided message.
Warnings
The function will update the reference even if it would not be an fast-forward update.
fn add_leaf(&self, message: Oid) -> Result<Reference<'r>>
[src]
Add a new leaf reference associated with the issue
Creates a new leaf reference for the message provided in the issue.
fn ref_part(&self) -> String
[src]
Get reference part for this issue
The references associated with an issue reside in paths specific to the
issue. This function returns the part unique for the issue, e.g. the
part after the dit/
.
Trait Implementations
impl<'r> Display for Issue<'r>
[src]
fn fmt(&self, f: &mut Formatter) -> RResult<(), Error>
[src]
Formats the value using the given formatter. Read more
impl<'r> PartialEq for Issue<'r>
[src]
fn eq(&self, other: &Self) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.