Function paths_from_options

Source
pub fn paths_from_options(
    path: &Option<PathBuf>,
    options: &Option<Options>,
) -> Vec<PathBuf>
Expand description

Returns a vector of PathBuf from the given options

If the options specify a merge request, the files from the current branch are returned. If the options specify a commit, the files changed in the commit are returned. If the options specify a branch, the files changed in the branch are returned. If none of the above options are set, the files in the given path are returned. If the options include an ignore regex, it is applied to the files returned.