pub async fn snapshot( shadow_repo: &Path, working_dir: &Path, label: &str, ) -> Result<Option<String>, String>
Stage everything and commit. Returns the new commit hash, or None if there were no changes to snapshot.