git_add_selected

Function git_add_selected 

Source
pub fn git_add_selected(
    repo: &Repository,
    paths: &Vec<PathItems>,
) -> Result<(), Error>
Expand description

Stages the selected files in the git repository. If staging fails, the program exits.

ยงArguments

  • repo - A reference to the git repository.
  • paths - A vector of file paths to stage.