Skip to content

Feature/commitSince accept date - #283

Open
NicolasAnquetil wants to merge 4 commits into
developfrom
feature/commitSince-accept-Date
Open

NicolasAnquetil wants to merge 4 commits into
developfrom
feature/commitSince-accept-Date

Conversation

@NicolasAnquetil

Copy link
Copy Markdown
Contributor

GitModelImporter >> withCommitsSince: accepts a DateAndTime or a Duration and tests isKindOf: DateAndTime.

That seems overly restrictive and we may want to pass a simple Date.

Modified the relevant check


withCommitsSince := (someDays isKindOf: DateAndTime)
ifTrue: [ someDays ]
withCommitsSince := ((someDays isKindOf: Date) or: (someDays isKindOf: DateAndTime))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
withCommitsSince := ((someDays isKindOf: Date) or: (someDays isKindOf: DateAndTime))
withCommitsSince := (someDays isKindOf: Date) or: [ someDays isKindOf: DateAndTime ]

To avoid computing someDays isKindOf: DateAndTime when (someDays isKindOf: Date) is true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants