MCPcopy Create free account
hub / github.com/LegacyCodeHQ/clarity-cli / parseNonEmptyLines

Function parseNonEmptyLines

vcs/git/git_diff.go:348–356  ·  view source on GitHub ↗
(stdout []byte)

Source from the content-addressed store, hash-verified

346}
347
348func parseNonEmptyLines(stdout []byte) []string {
349 var files []string
350 for _, line := range strings.Split(string(stdout), "\n") {
351 if line = strings.TrimSpace(line); line != "" {
352 files = append(files, line)
353 }
354 }
355 return files
356}
357
358// GetFileContentFromCommit reads the content of a file at a specific commit
359// using 'git show commit:path'. The filePath should be relative to the repository root.

Callers 2

GetCommitDeletedFilesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected