feat(a2a): Introduce restore command for a2a server (#13015)

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: Shreya Keshive <shreyakeshive@google.com>
This commit is contained in:
Coco Sheng
2025-12-09 10:08:23 -05:00
committed by GitHub
parent afd4829f10
commit 1f813f6a06
23 changed files with 1173 additions and 148 deletions
+5
View File
@@ -112,6 +112,11 @@ export class GitService {
try {
const repo = this.shadowGitRepository;
await repo.add('.');
const status = await repo.status();
if (status.isClean()) {
// If no changes are staged, return the current HEAD commit hash
return await this.getCurrentCommitHash();
}
const commitResult = await repo.commit(message, {
'--no-verify': null,
});