Skip to main content

add_to_index

Function add_to_index 

Source
pub fn add_to_index<T, I>(repo: &mut Repository, paths: I) -> Result<()>
where T: IntoCString, I: IntoIterator<Item = T>,
Expand description

Stage pathspecs into the index (like git add).

ยงErrors

  • Loading, updating, or writing index fails.