Repository navigation
Add no-useless-split-diff-view feature - #4399
Conversation
|
Can you include a screenshot of how it looks in files that aren't completely new? Like the readme.md in this PR |
This comment has been minimized.
This comment has been minimized.
Co-authored-by: Federico Brigante <[email protected]>
|
Keep in mind that both line numbers should be shown, like the native version |
|
Ahh you're right. Yeah sorting can't be done in a clean/safe way, so we'll have to keep the lines on the right side in that case. Let's see if they make sense or if people complain. The old line number is still relevant information so we should preserve it. |
Yeah that should come at last |
…itch/refined-github` into `add-hide-empty-split-diff-side`
|
@cheap-glitch whats the status of this just waiting for approval? |
…tch/refined-github into add-hide-empty-split-diff-side
hide-empty-split-diff-side featureno-useless-split-diff-view feature
no-useless-split-diff-view featurehide-empty-split-diff-side feature
Also setAttribute makes it easier to search/replace since it preserves the case
|
For me this is hiding diffs which are actually useful. As an example, here's how a recent diff looks with this feature enabled: What do you think changed in this commit? Well it looks like that line was added - but it wasn't. The normal split diff looks like this: You can see there's a subtle difference between the commits which is actually very important (there was a bug!) |
|
@danielsamuels can you provide an URL where this happens? Thanks |
|
This is on a GitHub Enterprise instance running 2.22.10, perhaps it's an incompatibility with that version? |
|
I think I know what's happening. It checks the left column first, it doesn't find the expected element ( I'll open an issue and disable this feature via hotfix for now |
hide-empty-split-diff-side featureno-useless-split-diff-view feature



Closes #4397
Test URLs
Screenshot
New files
Before:

After:

Modified files
Before:

After:

Demo screenshot