pub fn new() -> Result<Index, Error> {
        ::init();
        let mut raw = 0 as *mut raw::git_index;
        unsafe {
            try_call!(raw::git_index_new(&mut raw));
            Ok(Index::from_raw(raw))
        }
    }
/// Creates a new in-memory index.
///
/// This index object cannot be read/written to the filesystem, but may be
/// used to perform in-memory index operations.
Creates a new in-memory index.
This index object cannot be read/written to the filesystem, but may be
used to perform in-memory index operations.
Creates a new in - memory index . This index object cannot be read / written to the filesystem but may be used to perform in - memory index operations .
pub fn new() -> Result<Index, Error> {
        ::init();
        let mut raw = 0 as *mut raw::git_index;
        unsafe {
            try_call!(raw::git_index_new(&mut raw));
            Ok(Index::from_raw(raw))
        }
    }
pub fn new ( ) -> Result < Index , Error > { :: init ( ) ; let mut raw = 0 as * mut raw :: git_index ; unsafe { try_call ! ( raw git_index_new ( mut raw ) ) ; Ok ( Index :: from_raw ( raw ) ) } }
Creates a new in-memory index.
Creates a new in - memory index .