pub fn amend(&self,
                 update_ref: Option<&str>,
                 author: Option<&Signature>,
                 committer: Option<&Signature>,
                 message_encoding: Option<&str>,
                 message: Option<&str>,
                 tree: Option<&Tree<'a>>) -> Result<Oid, Error> {
        let mut raw = raw::git_oid { id: [0, ..raw::GIT_OID_RAWSZ] };
        unsafe {
            try_call!(raw::git_commit_amend(&mut raw,
                                            &*self.raw(),
                                            update_ref.map(|s| s.to_c_str()),
                                            author.map(|s| &*s.raw()),
                                            committer.map(|s| &*s.raw()),
                                            message_encoding.map(|s| s.to_c_str()),
                                            message.map(|s| s.to_c_str()),
                                            tree.map(|t| &*t.raw())));
            Ok(Oid::from_raw(&raw))
        }
    }
/// Amend this existing commit with all non-`None` values
///
/// This creates a new commit that is exactly the same as the old commit,
/// except that any non-`None` values will be updated. The new commit has
/// the same parents as the old commit.
///
/// For information about `update_ref`, see `new`.
Amend this existing commit with all non-`None` values
This creates a new commit that is exactly the same as the old commit,
except that any non-`None` values will be updated. The new commit has
the same parents as the old commit.

For information about `update_ref`, see `new`.
Amend this existing commit with all non - ` None ` values This creates a new commit that is exactly the same as the old commit except that any non - ` None ` values will be updated . The new commit has the same parents as the old commit . For information about ` update_ref ` see ` new ` .
pub fn amend(&self,
                 update_ref: Option<&str>,
                 author: Option<&Signature>,
                 committer: Option<&Signature>,
                 message_encoding: Option<&str>,
                 message: Option<&str>,
                 tree: Option<&Tree<'a>>) -> Result<Oid, Error> {
        let mut raw = raw::git_oid { id: [0, ..raw::GIT_OID_RAWSZ] };
        unsafe {
            try_call!(raw::git_commit_amend(&mut raw,
                                            &*self.raw(),
                                            update_ref.map(|s| s.to_c_str()),
                                            author.map(|s| &*s.raw()),
                                            committer.map(|s| &*s.raw()),
                                            message_encoding.map(|s| s.to_c_str()),
                                            message.map(|s| s.to_c_str()),
                                            tree.map(|t| &*t.raw())));
            Ok(Oid::from_raw(&raw))
        }
    }
pub fn amend ( & self , update_ref : Option < & str > , author : Option < & Signature > , committer : Option < & Signature > , message_encoding : Option < & str > , message : Option < & str > , tree : Option < & Tree < ' a > > ) -> Result < Oid , Error > { let mut raw = raw :: git_oid { id : [ 0 , .. raw :: GIT_OID_RAWSZ ] } ; unsafe { try_call ! ( raw git_commit_amend ( mut raw self raw ( ) update_ref map ( s s to_c_str ( ) ) author map ( s s raw ( ) ) committer map ( s s raw ( ) ) message_encoding map ( s s to_c_str ( ) ) message map ( s s to_c_str ( ) ) tree map ( t t raw ( ) ) ) ) ; Ok ( Oid :: from_raw ( & raw ) ) } }
Amend this existing commit with all non-`None` values
This creates a new commit that is exactly the same as the old commit,
except that any non-`None` values will be updated.
Amend this existing commit with all non - ` None ` values This creates a new commit that is exactly the same as the old commit except that any non - ` None ` values will be updated .
&self
update_ref
Option<&str>
author
Option<&Signature>
committer
Option<&Signature>
message_encoding
Option<&str>
message
Option<&str>
tree
Option<&Tree<'a>>
&self
update_ref
Option<&str>
author
Option<&Signature>
committer
Option<&Signature>
message_encoding
Option<&str>
message
Option<&str>
tree
Option<&Tree<'a>>