pub fn open(index_path: &Path) -> Result<Index, Error> {
        ::init();
        let mut raw = 0 as *mut raw::git_index;
        unsafe {
            try_call!(raw::git_index_open(&mut raw, index_path.to_c_str()));
            Ok(Index::from_raw(raw))
        }
    }
/// Create a new bare Git index object as a memory representation of the Git
/// index file in 'index_path', without a repository to back it.
///
/// Since there is no ODB or working directory behind this index, any Index
/// methods which rely on these (e.g. add_path) will fail.
///
/// If you need an index attached to a repository, use the `index()` method
/// on `Repository`.
Create a new bare Git index object as a memory representation of the Git
index file in 'index_path', without a repository to back it.

Since there is no ODB or working directory behind this index, any Index
methods which rely on these  will fail.

If you need an index attached to a repository, use the `index()` method
on `Repository`.
Create a new bare Git index object as a memory representation of the Git index file in ' index_path ' without a repository to back it . Since there is no ODB or working directory behind this index any Index methods which rely on these will fail . If you need an index attached to a repository use the ` index () ` method on ` Repository ` .
pub fn open(index_path: &Path) -> Result<Index, Error> {
        ::init();
        let mut raw = 0 as *mut raw::git_index;
        unsafe {
            try_call!(raw::git_index_open(&mut raw, index_path.to_c_str()));
            Ok(Index::from_raw(raw))
        }
    }
pub fn open ( index_path : & Path ) -> Result < Index , Error > { :: init ( ) ; let mut raw = 0 as * mut raw :: git_index ; unsafe { try_call ! ( raw git_index_open ( mut raw index_path to_c_str ( ) ) ) ; Ok ( Index :: from_raw ( raw ) ) } }
Create a new bare Git index object as a memory representation of the Git
index file in 'index_path', without a repository to back it.
Create a new bare Git index object as a memory representation of the Git index file in ' index_path ' without a repository to back it .
index_path
&Path
index_path
&Path