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

Function isNewStatus

vcs/git/git_stats.go:456–467  ·  view source on GitHub ↗

isNewStatus determines if a git status code represents a new or untracked file

(status string)

Source from the content-addressed store, hash-verified

454
455// isNewStatus determines if a git status code represents a new or untracked file
456func isNewStatus(status string) bool {
457 status = strings.TrimSpace(status)
458 if status == "" {
459 return false
460 }
461
462 if status == "??" {
463 return true
464 }
465
466 return status[0] == 'A'
467}
468
469func countLinesInFile(path string) (int, error) {
470 file, err := os.Open(path)

Callers 3

GetUncommittedFileStatsFunction · 0.85
GetCommitFileStatsFunction · 0.85
GetUncommittedFileDiffsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected