pub fn add(&mut self, source_entry: &IndexEntry) -> Result<(), Error> {
        let mut entry: raw::git_index_entry = unsafe { mem::zeroed() };
        source_entry.configure(&mut entry);
        unsafe {
            try_call!(raw::git_index_add(self.raw, &entry));
            Ok(())
        }
    }
/// Add or update an index entry from an in-memory struct
///
/// If a previous index entry exists that has the same path and stage as the
/// given 'source_entry', it will be replaced. Otherwise, the 'source_entry'
/// will be added.
Add or update an index entry from an in-memory struct
If a previous index entry exists that has the same path and stage as the
given 'source_entry', it will be replaced. Otherwise, the 'source_entry'
will be added.
Add or update an index entry from an in - memory struct If a previous index entry exists that has the same path and stage as the given ' source_entry ' it will be replaced . Otherwise the ' source_entry ' will be added .
pub fn add(&mut self, source_entry: &IndexEntry) -> Result<(), Error> {
        let mut entry: raw::git_index_entry = unsafe { mem::zeroed() };
        source_entry.configure(&mut entry);
        unsafe {
            try_call!(raw::git_index_add(self.raw, &entry));
            Ok(())
        }
    }
pub fn add ( & mut self , source_entry : & IndexEntry ) -> Result < ( ) , Error > { let mut entry : raw :: git_index_entry = unsafe { mem :: zeroed ( ) } ; source_entry . configure ( & mut entry ) ; unsafe { try_call ! ( raw git_index_add ( self raw entry ) ) ; Ok ( ( ) ) } }
Add or update an index entry from an in-memory struct
If a previous index entry exists that has the same path and stage as the
given 'source_entry', it will be replaced.
Add or update an index entry from an in - memory struct If a previous index entry exists that has the same path and stage as the given ' source_entry ' it will be replaced .
&mut self
source_entry
&IndexEntry
&mut self
source_entry
&IndexEntry