question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Diff doesn't show section changes / misleads on where changes appear

See original GitHub issue

Bug

As screen in this screenshot, the context for the !debug.keystone change shows under the "# IntelliJ" section which is quite misleading. By looking at the line numbers you may notice that they are not linear - there is a jump from line 25 to 39. However there is no notice of this, so the context lines appears together with the wrong section header.

Screen Shot 2019-10-04 at 13 51 53

Since some changes are context sensitive, it may cause problems for people while upgrading. In this particular example (.gitignore) the context isn’t important beyond readability and future upgrade diffs.

React Native versions

0.60.6 => 0.61.2

Screen Shot 2019-10-04 at 13 56 47

Steps to reproduce

  1. Open https://react-native-community.github.io/upgrade-helper/?from=0.60.6&to=0.61.2
  2. Scroll down to the diff of .gitignore
  3. See that “Android/IntelliJ” appears as the header for the Buck ignore changes.

Describe what you expected to happen: There should be a visual divider or other visual clue when line numbers increment more than 1.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (11 by maintainers)

github_iconTop GitHub Comments

4reactions
KevinHu2014commented, Oct 10, 2019

@lucasbento Is it something like this?

image
3reactions
pviniscommented, Oct 14, 2019

Thank you @KevinHu2014! @scarlac you should be able to see this very soon, it is being built and deployed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

git diff does not show new file
Since the new file is not tracked by git when you created it, the git had no way to identify what has changed....
Read more >
Pull request diff - show actual diff instead of commit changes
It shows all the changes in commits in "Files" tab instead of what is actualy different between the branches.
Read more >
Git diff Command – How to Compare Changes in Your Code
You can run git diff <commit_hash> <commit_hash> the command to compare the changes between two commits. Like branch comparison, order does ...
Read more >
Track changes in Word
When Track Changes is on, the section is highlighted. Deletions are marked with a strikethrough, and additions are marked with an underline. Different...
Read more >
Git - git-diff Documentation
This form is to view the changes you made relative to the index (staging area for the next commit). In other words, the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found