GitDiffFiles returns files changed between current HEAD and the given branch/ref Also includes untracked files (new files not yet committed)
(root, ref string)
| 67 | // GitDiffFiles returns files changed between current HEAD and the given branch/ref |
| 68 | // Also includes untracked files (new files not yet committed) |
| 69 | func 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 |
| 78 | type DiffStat struct { |