MCPcopy Create free account
hub / github.com/di-sukharev/opencommit / getHeadCommitMessage

Function getHeadCommitMessage

test/e2e/utils.ts:269–272  ·  view source on GitHub ↗
(gitDir: string)

Source from the content-addressed store, hash-verified

267};
268
269export const getHeadCommitMessage = async (gitDir: string): Promise<string> => {
270 const { stdout } = await runGit(['log', '-1', '--pretty=%B'], gitDir);
271 return stdout.trim();
272};
273
274export const getHeadCommitFiles = async (gitDir: string): Promise<string[]> => {
275 const { stdout } = await runGit(

Callers 1

Calls 2

runGitFunction · 0.85
trimMethod · 0.80

Tested by

no test coverage detected