Function get_staged_files
Source pub fn get_staged_files() -> Result<Vec<String>>
Expand description
Returns a list of files that are currently staged for commit.
§Errors
Returns an error if the repository cannot be accessed.
§Examples
use rusty_commit::git;
let staged = git::get_staged_files().unwrap();
for file in staged {
println!("Staged: {}", file);
}