Skip to main content

staged_diff

Function staged_diff 

Source
pub fn staged_diff(dir: &Path) -> Option<String>
Expand description

The staged diff (git diff --staged), for feeding to an AI commit-message generator (T125) — None on any failure, or when nothing is staged (an empty diff is not useful context and would only prompt a generic reply).