Skip to content

Use a better default MAX_GIT_DIFF_LINE_CHARACTERS - #1845

Merged
appleboy merged 1 commit into
go-gitea:masterfrom
silverwind:line-len-limit
Jun 1, 2017
Merged

Use a better default MAX_GIT_DIFF_LINE_CHARACTERS#1845
appleboy merged 1 commit into
go-gitea:masterfrom
silverwind:line-len-limit

Conversation

@silverwind

Copy link
Copy Markdown
Member

Tests indicate that line length alone does not make browsers slow, so increase the default threshold after which diffs get surpressed for line length from 500 to a more reasonable 5000 characters.

Fixes: #1826

Tests indicate that line length alone does not make browsers slow, so
increase the default threshold after which diffs get surpressed for line
length from 500 to a more reasonable 5000 characters.

Fixes: go-gitea#1826
@lunny lunny added the type/enhancement An improvement of existing functionality label Jun 1, 2017
@lunny lunny added this to the 1.2.0 milestone Jun 1, 2017
@lunny

lunny commented Jun 1, 2017

Copy link
Copy Markdown
Member

LGTM

@tboerger tboerger added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jun 1, 2017
@appleboy

appleboy commented Jun 1, 2017

Copy link
Copy Markdown
Member

LGTM

@tboerger tboerger added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Jun 1, 2017
@appleboy
appleboy merged commit 31e8436 into go-gitea:master Jun 1, 2017
lunny pushed a commit that referenced this pull request Oct 25, 2017
MAX_GIT_DIFF_LINE_CHARACTERS was updated in #1845 but the corresponding
default value of MaxGitDiffLineCharacters was not changed. This can lead
to inconsistencies.
lafriks pushed a commit that referenced this pull request Oct 25, 2017
MAX_GIT_DIFF_LINE_CHARACTERS was updated in #1845 but the corresponding
default value of MaxGitDiffLineCharacters was not changed. This can lead
to inconsistencies.
vdbt pushed a commit to vdbt/gitea that referenced this pull request Oct 27, 2017
MAX_GIT_DIFF_LINE_CHARACTERS was updated in go-gitea#1845 but the corresponding
default value of MaxGitDiffLineCharacters was not changed. This can lead
to inconsistencies.
@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 2020
@silverwind
silverwind deleted the line-len-limit branch March 26, 2026 18:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/enhancement An improvement of existing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Diff display suppression should not trigger on long lines

4 participants