pub fn get_git_diff( mode: &Mode, target: Option<&str>, dir: &str, config: &CommitConfig, ) -> Result<String>
Get git diff based on the specified mode