Function stage_files
Source pub fn stage_files(files: &[String]) -> Result<()>
Expand description
Stages the specified files for commit.
§Arguments
files - A slice of file paths to stage
§Errors
Returns an error if the git add command fails.
§Examples
use rusty_commit::git;
let files = vec!["src/main.rs".to_string(), "Cargo.toml".to_string()];
git::stage_files(&files).unwrap();