mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-22 02:54:31 -07:00
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:
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user