Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor git source to support scanning units #2083

Merged
merged 1 commit into from
Nov 1, 2023
Merged

Conversation

mcastorina
Copy link
Collaborator

Description:

Adds functions for scanning a single repo or directory as well as all the required methods for unit chunking.

Checklist:

  • Tests passing (make test-community)?
  • Lint passing (make lint this requires golangci-lint)?

@mcastorina mcastorina requested review from a team as code owners November 1, 2023 05:19
@mcastorina mcastorina changed the base branch from main to chunk-reporter November 1, 2023 05:21
Comment on lines +83 to +87
var _ interface {
sources.Source
sources.SourceUnitEnumChunker
sources.SourceUnitUnmarshaller
} = (*Source)(nil)
Copy link
Collaborator

Choose a reason for hiding this comment

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

whoa i didn't know you could smoosh interfaces together like this

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's an anonymous interface composed of other interfaces! Similar to interface{} (aka any) but with stuff in it.

Base automatically changed from chunk-reporter to main November 1, 2023 16:22
@mcastorina mcastorina merged commit 9d6bc8c into main Nov 1, 2023
9 checks passed
@mcastorina mcastorina deleted the git-unit-refactor branch November 1, 2023 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants