get_git_diff_from_start

Function get_git_diff_from_start 

Source
pub fn get_git_diff_from_start() -> Result<String>
Expand description

Get the git diff from the starting commit.

Uses the saved starting commit from .agent/start_commit to generate an incremental diff. Falls back to diffing from HEAD if no start commit file exists.

ยงReturns

Returns a formatted diff string, or an error if:

  • The diff cannot be generated
  • The starting commit file exists but is invalid