build_helper::git

Function get_git_modified_files

Source
pub fn get_git_modified_files(
    config: &GitConfig<'_>,
    git_dir: Option<&Path>,
    extensions: &[&str],
) -> Result<Option<Vec<String>>, String>
Expand description

Returns the files that have been modified in the current branch compared to the master branch. The extensions parameter can be used to filter the files by their extension. Does not include removed files. If extensions is empty, all files will be returned.