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

Fix potential issue with commenting on "out of date" lines #72

Closed
wants to merge 1 commit into from

Conversation

11mdlow
Copy link

@11mdlow 11mdlow commented Mar 6, 2015

Potential fix for #39

We were seeing this issue come up a lot when running pronto on our pull requests. It turns out that when you're looking through the commits for the offending line, you find the first commit where the line exists, regardless of whether or not it's added, deleted, or it's just a context line. As a result you could potentially commit an offending line (that violates rubocop in our case), and then commit a change to a nearby line. When scanning the patches, it would pick the most recent patch, even though that line was actually committed earlier.

What do you think of this? Does it make sense to only find lines that are additions?

@11mdlow
Copy link
Author

11mdlow commented Mar 6, 2015

seems like this solution is quite right...back to the drawing board :-P

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.

None yet

1 participant