Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ahrav committed Feb 13, 2024
1 parent 8087c16 commit 0683fc9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/gitparse/gitparse.go
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,7 @@ func (c *Parser) FromReader(ctx context.Context, stdOut io.Reader, diffChan chan
if !currentCommit.hasDiffs {
// Initialize an empty Diff instance associated with the given commit.
// Since this diff represents "no changes", we only need to set the commit.
// This is required to ensure commits that have no diffs are still processed.
diffChan <- &Diff{Commit: currentCommit}
}
}
Expand Down

0 comments on commit 0683fc9

Please sign in to comment.