Skip to content

Commit

Permalink
Added PureGitFile>>#logReverse
Browse files Browse the repository at this point in the history
  • Loading branch information
svenvc committed Nov 4, 2024
1 parent a51a5e1 commit 0ec80a9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Iceberg-Git-CLI/PureGitFile.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,18 @@ PureGitFile >> logPatchReverse [
yourself ]
]

{ #category : #accessing }
PureGitFile >> logReverse [
| commits |
commits := self repository queries
log: { '--first-parent' . '--reverse' . 'HEAD' . '--' . self path }.
^ commits collect: [ :each |
PureGitFileCommit new
copyFrom: each;
path: self path;
yourself ]
]

{ #category : #accessing }
PureGitFile >> parent [
^ self repository resolveFileReference: self fileReference parent
Expand Down

0 comments on commit 0ec80a9

Please sign in to comment.