pub fn save_start_commit() -> Result<()>Expand description
Save the current HEAD commit as the starting commit.
Writes the current HEAD OID to .agent/start_commit only if it doesn’t
already exist. This ensures the start_commit persists across pipeline runs
and is only reset when explicitly requested via --reset-start-commit.
§Errors
Returns an error if:
- The current HEAD cannot be determined
- The
.agentdirectory cannot be created - The file cannot be written