Skip to main content

get_file_at_commit

Function get_file_at_commit 

Source
pub fn get_file_at_commit(commit: &str, file: &str) -> Result<String>
Expand description

Get file content at a specific commit.

Returns the file content as a string, or an empty string if the file doesn’t exist at that commit.

§Errors

Returns error if git command fails.