MCPcopy
hub / github.com/di-sukharev/opencommit / getHeadCommitSubject

Function getHeadCommitSubject

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

Source from the content-addressed store, hash-verified

262};
263
264export const getHeadCommitSubject = async (gitDir: string): Promise<string> => {
265 const { stdout } = await runGit(['log', '-1', '--pretty=%s'], gitDir);
266 return stdout.trim();
267};
268
269export const getHeadCommitMessage = async (gitDir: string): Promise<string> => {
270 const { stdout } = await runGit(['log', '-1', '--pretty=%B'], gitDir);

Callers 1

assertHeadCommitFunction · 0.85

Calls 2

runGitFunction · 0.85
trimMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…