pub fn write_tree_to(&mut self, repo: &Repository) -> Result<Oid, Error> {
        let mut raw = raw::git_oid { id: [0, ..raw::GIT_OID_RAWSZ] };
        unsafe {
            try_call!(raw::git_index_write_tree_to(&mut raw, self.raw,
                                                   repo.raw()));
            Ok(Oid::from_raw(&raw))
        }
    }
/// Write the index as a tree to the given repository
///
/// This is the same as `write_tree` except that the destination repository
/// can be chosen.
Write the index as a tree to the given repository
This is the same as `write_tree` except that the destination repository
can be chosen.
Write the index as a tree to the given repository This is the same as ` write_tree ` except that the destination repository can be chosen .
pub fn write_tree_to(&mut self, repo: &Repository) -> Result<Oid, Error> {
        let mut raw = raw::git_oid { id: [0, ..raw::GIT_OID_RAWSZ] };
        unsafe {
            try_call!(raw::git_index_write_tree_to(&mut raw, self.raw,
                                                   repo.raw()));
            Ok(Oid::from_raw(&raw))
        }
    }
pub fn write_tree_to ( & mut self , repo : & Repository ) -> Result < Oid , Error > { let mut raw = raw :: git_oid { id : [ 0 , .. raw :: GIT_OID_RAWSZ ] } ; unsafe { try_call ! ( raw git_index_write_tree_to ( mut raw self raw repo raw ( ) ) ) ; Ok ( Oid :: from_raw ( & raw ) ) } }
Write the index as a tree to the given repository
This is the same as `write_tree` except that the destination repository
can be chosen.
Write the index as a tree to the given repository This is the same as ` write_tree ` except that the destination repository can be chosen .
&mut self
repo
&Repository
&mut self
repo
&Repository