Skip to main content

get_commit_diff

Function get_commit_diff 

Source
pub fn get_commit_diff(commit_hash: &str) -> Result<String>
Expand description

Get the diff for a specific commit.

§Arguments

  • commit_hash - The commit hash to get the diff for

§Returns

  • Ok(String) - The diff output
  • Err - If the git command fails