MCPcopy Create free account
hub / github.com/anus-dev/ANUS / getCurrentCommitHash

Method getCurrentCommitHash

packages/core/src/services/gitService.ts:103–106  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

101 }
102
103 async getCurrentCommitHash(): Promise<string> {
104 const hash = await this.shadowGitRepository.raw('rev-parse', 'HEAD');
105 return hash.trim();
106 }
107
108 async createFileSnapshot(message: string): Promise<string> {
109 const repo = this.shadowGitRepository;

Callers 1

saveRestorableToolCallsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected