get_commit_files

Function get_commit_files 

Source
pub fn get_commit_files(
    repo_path: &Path,
    commit_ref: &str,
) -> Result<Vec<String>>
Expand description

Retrieves the list of files changed in a commit.

Returns the file paths relative to the repository root for all files that were added, modified, or deleted in the commit.

ยงErrors

Returns an error if the repository cannot be found or the commit reference cannot be resolved.