Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Don't display large diffs by default - #799

Merged
kuychaco merged 3 commits into
masterfrom
mkt-defer-showing-large-diffs
May 15, 2017
Merged

kuychaco merged 3 commits into
masterfrom
mkt-defer-showing-large-diffs

Conversation

@BinaryMuse

@BinaryMuse BinaryMuse commented May 14, 2017 •

Copy link
Copy Markdown
Contributor

Large diffs can slow down rendering and make Atom feel slow. This is a stopgap solution that presents a GitHub.com-style warning about large diffs that the user can confirm to see the diff; I've set the default threshold to 1000 lines.

Once a user confirms a large diff, its path gets added to a Set that ensures any diff with the same path will always be shown. I debated on this functionality but in the end decided it would make the most sense. 💭 s?

Fixes #786

@BinaryMuse

Copy link
Copy Markdown
Contributor Author

github-package-large-diff

@BinaryMuse
BinaryMuse requested a review from kuychaco May 14, 2017 20:08

@kuychaco kuychaco left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍 :shipit:

@kuychaco
kuychaco merged commit 6ab457b into master May 15, 2017
@kuychaco
kuychaco deleted the mkt-defer-showing-large-diffs branch May 15, 2017 11:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants