MCPcopy Create free account
hub / github.com/JordanCoin/codemap / GitDiffFiles

Function GitDiffFiles

scanner/git.go:69–75  ·  view source on GitHub ↗

GitDiffFiles returns files changed between current HEAD and the given branch/ref Also includes untracked files (new files not yet committed)

(root, ref string)

Source from the content-addressed store, hash-verified

67// GitDiffFiles returns files changed between current HEAD and the given branch/ref
68// Also includes untracked files (new files not yet committed)
69func GitDiffFiles(root, ref string) (map[string]bool, error) {
70 info, err := GitDiffInfo(root, ref)
71 if err != nil {
72 return nil, err
73 }
74 return info.Changed, nil
75}
76
77// GitDiffStats returns +/- line counts for changed files
78type DiffStat struct {

Callers 1

TestGitDiffFilesHelperFunction · 0.85

Calls 1

GitDiffInfoFunction · 0.85

Tested by 1

TestGitDiffFilesHelperFunction · 0.68