Skip to content

Commit

Permalink
Add PureGitExtendedFileAnalysis>>#uniqueTrackedLines to gather all tr…
Browse files Browse the repository at this point in the history
…acked line over all versions
  • Loading branch information
svenvc committed Nov 2, 2024
1 parent a02f2fc commit 28ecd0a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Iceberg-Git-CLI/PureGitExtendedFileAnalysis.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,15 @@ PureGitExtendedFileAnalysis >> printOn: stream [
stream nextPut: $)
]

{ #category : #accessing }
PureGitExtendedFileAnalysis >> uniqueTrackedLines [
| trackedLines |
trackedLines := IdentitySet new.
self versions do: [ :each |
trackedLines addAll: each ].
^ trackedLines
]

{ #category : #accessing }
PureGitExtendedFileAnalysis >> versions [
^ versions
Expand Down

0 comments on commit 28ecd0a

Please sign in to comment.