Skip to content

Conversation

@bitbloxhub
Copy link
Contributor

Fixes #154.

Copy link
Collaborator

@jfly jfly left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution! Could you add a test?

@bitbloxhub bitbloxhub force-pushed the ignore-submodules branch 2 times, most recently from 97b3f19 to 811fe18 Compare February 2, 2026 21:56

// 160000 is the mode for submodules
if strings.HasPrefix(stage, "160000") {
g.scanner.Scan()
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't understand why we need this here. Won't the for loop do the right thing when we continue?

Copy link
Contributor Author

@bitbloxhub bitbloxhub Feb 2, 2026

Choose a reason for hiding this comment

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

No, because this loop just calls g.scanner.Text(), and g.scanner.Scan() is called in the outer loop (the one we call nextFile in). If you want, I could refactor it so we call Scan in the nextFile function.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ohhh, got it. Your call, whatever you prefer.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can't get the refactor to work, so I guess we can just leave this here for now.

Copy link
Collaborator

@jfly jfly left a comment

Choose a reason for hiding this comment

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

Thanks for adding the test! LGTM

@brianmcgee brianmcgee merged commit f63f45d into numtide:main Feb 3, 2026
4 checks passed
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.

ignore submodules

3 participants