pub fn get_file_log(
_path: &Path,
_file_path: &str,
_limit: Option<usize>,
) -> Result<Vec<GitCommit>>Expand description
Gets the git log for a specific file.
§Parameters
path: The path to the git repository.file_path: The path to the file within the repository.limit: Optional limit on the number of commits to return. If not provided, returns all commits.
§Returns
Ok(Vec<GitCommit>)with a list of commits affecting the file.Err(Error)if an error occurred while getting the file’s commit history.