UI, a small change, shows "130 common lines(too big)" and can not expand the content.

86 views
Skip to first unread message

Yingchun Li

unread,
Jan 22, 2026, 1:41:55 AMJan 22
to Repo and Gerrit Discussion
Hi,
    There is a small change, but when show the diff, the diff view shows
"130 common lines(too big)", and also can not expand the contents.
    Screenshot from 2026-01-22 14-07-13.png
     git show --stat shows:
         path/of/myrepo/coex_cfg_best1607.h | 3 +++
         1 file changed, 3 insertions(+)
     The file itself is also not big, the size is 5927bytes.
      I did some tests:
      1, recreate the change, using the some original file and updated file, can not reproduce.
       2, recreate the change on another server, can not reproduce.
       3, open the broser's develop tools, it shows:
        "coex_cfg_best1607.h:1 The resource http://myserver/changes/?q=change:300424 was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally."
       4, also check the server log, there are no related errors.
       gerrit version is 3.12.3, and the chrome broswer is latest version.
       Please give some advice, thanks a lot.
Br,
Yingchun

Yingchun Li

unread,
Jan 22, 2026, 6:48:58 AMJan 22
to Repo and Gerrit Discussion
Oh, from the setting ->"Diff Preferences", if the 'ignore Whitespace' is not default "None", and select any of "Trailing", "Leading & Trailing", or "All", then the contents can be showed.
Thanks.

Yingchun Li

unread,
Jan 23, 2026, 12:43:36 AMJan 23
to Repo and Gerrit Discussion
On Thursday, January 22, 2026 at 7:48:58 PM UTC+8 Yingchun Li wrote:
Oh, from the setting ->"Diff Preferences", if the 'ignore Whitespace' is not default "None", and select any of "Trailing", "Leading & Trailing", or "All", then the contents can be showed.
Thanks.
But it is still very strange, because there is no any trialing white space on the changed lines, 
in fact, there is no any trailing white space in the whole file. 

Björn Pedersen

unread,
Jan 23, 2026, 7:35:25 AMJan 23
to Repo and Gerrit Discussion
Yingchun Li schrieb am Freitag, 23. Januar 2026 um 06:43:36 UTC+1:
On Thursday, January 22, 2026 at 7:48:58 PM UTC+8 Yingchun Li wrote:
Oh, from the setting ->"Diff Preferences", if the 'ignore Whitespace' is not default "None", and select any of "Trailing", "Leading & Trailing", or "All", then the contents can be showed.
Thanks.
But it is still very strange, because there is no any trialing white space on the changed lines, 
in fact, there is no any trailing white space in the whole file. 

Well, then it would be single line ;) 

So I guess this is a line-ending problem ( \r\n (windows ) vs. \n  (linux) ). 

Sven Selberg

unread,
Jan 23, 2026, 7:48:29 AMJan 23
to Repo and Gerrit Discussion
On Friday, January 23, 2026 at 1:35:25 PM UTC+1 Björn Pedersen wrote:
Yingchun Li schrieb am Freitag, 23. Januar 2026 um 06:43:36 UTC+1:
On Thursday, January 22, 2026 at 7:48:58 PM UTC+8 Yingchun Li wrote:
Oh, from the setting ->"Diff Preferences", if the 'ignore Whitespace' is not default "None", and select any of "Trailing", "Leading & Trailing", or "All", then the contents can be showed.
Thanks.
But it is still very strange, because there is no any trialing white space on the changed lines, 
in fact, there is no any trailing white space in the whole file. 

Well, then it would be single line ;) 

So I guess this is a line-ending problem ( \r\n (windows ) vs. \n  (linux) ). 

I remember it as if we have solved similar issues at $DAY_JOB by adding local hooks to windows users that eliminate all line-ending corner-cases.
Commit: "\r\n" -> "\n"
Checkout: "\n" -> "\r\n"
Don't know if that's helpful.

Yingchun Li

unread,
Jan 24, 2026, 12:17:02 AMJan 24
to Repo and Gerrit Discussion
On Friday, January 23, 2026 at 8:35:25 PM UTC+8 Björn Pedersen wrote:
Yingchun Li schrieb am Freitag, 23. Januar 2026 um 06:43:36 UTC+1:
On Thursday, January 22, 2026 at 7:48:58 PM UTC+8 Yingchun Li wrote:
Oh, from the setting ->"Diff Preferences", if the 'ignore Whitespace' is not default "None", and select any of "Trailing", "Leading & Trailing", or "All", then the contents can be showed.
Thanks.
But it is still very strange, because there is no any trialing white space on the changed lines, 
in fact, there is no any trailing white space in the whole file. 

Well, then it would be single line ;) 

So I guess this is a line-ending problem ( \r\n (windows ) vs. \n  (linux) ). 
 
There is no '\r\n', but the changed line do have a lot of spaces in the middile of
changed line(for the align reason).
this snippet is the hd of changed lines: 
...
00000840  23 64 65 66 69 6e 65 20  43 4f 45 58 5f 4d 41 58  |#define COEX_MAX|
00000850  5f 42 41 55 44 52 41 54  45 20 20 20 20 20 20 20  |_BAUDRATE       |
00000860  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000870  20 20 20 20 20 20 20 20  28 33 30 30 30 30 30 30  |        (3000000|
00000880  29 0a 23 64 65 66 69 6e  65 20 43 4f 45 58 5f 44  |).#define COEX_D|
00000890  45 46 41 55 4c 54 5f 42  41 55 44 52 41 54 45 20  |EFAULT_BAUDRATE |
000008a0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000008b0  20 20 20 20 20 20 20 20  20 20 28 32 30 30 30 30  |          (20000|
000008c0  30 30 29 0a 0a 23 69 66  6e 64 65 66 20 57 49 46  |00)..#ifndef WIF| 
...
Reply all
Reply to author
Forward
0 new messages