MCPcopy Index your code
hub / github.com/sinclairtarget/git-who / parseLinesChanged

Function parseLinesChanged

internal/git/parse.go:20–31  ·  view source on GitHub ↗
(s string, line string)

Source from the content-addressed store, hash-verified

18}
19
20func parseLinesChanged(s string, line string) (int, error) {
21 changed, err := strconv.Atoi(s)
22 if err != nil {
23 return 0, fmt.Errorf("could not parse %s as int on line \"%s\": %w",
24 s,
25 line,
26 err,
27 )
28 }
29
30 return changed, nil
31}
32
33func allowCommit(commit Commit, now time.Time) bool {
34 if commit.AuthorName == "" && commit.AuthorEmail == "" {

Callers 1

ParseCommitsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected