MCPcopy Create free account
hub / github.com/IgorWarzocha/howcode / countNonEmptyLines

Function countNonEmptyLines

desktop/project-git/commit-context.ts:30–35  ·  view source on GitHub ↗
(output: string)

Source from the content-addressed store, hash-verified

28}
29
30function countNonEmptyLines(output: string) {
31 return output
32 .split('\n')
33 .map((line) => line.trim())
34 .filter(Boolean).length
35}
36
37export function buildDefaultCommitMessage(context: { fileCount: number }) {
38 if (context.fileCount <= 0) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected