Skip to main content

read_git_diff

Function read_git_diff 

Source
pub fn read_git_diff(cwd: &Path, max_chars: usize) -> Option<String>
Expand description

Reads the current git diff (staged + unstaged) and returns it as a formatted string. Includes capping to prevent token overflow.