mirror of
https://github.com/lukaszraczylo/git-velocity.git
synced 2026-06-05 22:43:56 +00:00
Ignore file rename / remove operations as they don't contribute to the codebase. (#1)
This commit is contained in:
@@ -397,6 +397,11 @@ func (r *Repository) getCommitStats(c *object.Commit, testPatterns []string) com
|
||||
filesSet := make(map[string]bool)
|
||||
|
||||
for _, change := range changes {
|
||||
// Skip rename/move operations - they don't represent actual code contribution
|
||||
if diff.IsRenameOrMove(change.From.Name, change.To.Name) {
|
||||
continue
|
||||
}
|
||||
|
||||
// Get the file path
|
||||
var filePath string
|
||||
if change.To.Name != "" {
|
||||
|
||||
Reference in New Issue
Block a user