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.

[GH Actions] Colorize git diff by character

See original GitHub issue

If you haven’t already, check out our contributing guidelines for onboarding!


Platform - version:
N/A

Action Performed (reproducible steps):

  • We have an automation that runs on our PRs that recompiles all our Javascript Github Actions called verifyGithubActionsBuilds. This is useful in catching unexpected errors with ncc (the library we use to bundle our Node.js scripts with their dependencies), and in preventing developers from forgetting to recompile the scripts.

Expected Result:

  • if a diff is found, the diff output should have character-level diff highlighting — but presently, it does not. This makes it difficult to spot differences between the committed script and the recompiled script.

Actual Result:

  • the diff output does not have character-level diff highlighting. This makes it difficult to spot differences between the committed script and the recompiled script
  • Looking at the diff output by verifyGithubActionsBuilds can be a useful debugging tool, but it is sometimes very difficult to spot the differences between the the outputted diffs, which wastes time and causes developer headaches. See this workflow run for an example of a not-so-useful diff. Solution
  • Upgrade the verifyActions script so that it outputs a colored, character-level diff. Something like this:

image

https://www.upwork.com/jobs/~01d11a72b11bec4282

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
FredericoGauzcommented, Aug 10, 2021

I don’t know if it helps but at least on my side it appears as paid.

2021年8月9日(月) 18:20 Matt Allen @.***>:

@bfitzexpensify https://github.com/bfitzexpensify was payment ever issued in Upwork for this job? I can’t find it.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/Expensify/App/issues/1665#issuecomment-895557829, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEL2SSRVB7N3U3JLTT2HB23T4BBBZANCNFSM4Y2CBFEA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

1reaction
FredericoGauzcommented, Mar 10, 2021

Hi @roryabraham and @bfitzexpensify,

Thank you, I start working on the issue as soon as possible.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I visualize per-character differences in a unified diff ...
Simple (highlights individual character changes; does not highlight space changes): git diff --color-words=. More complex (does highlight space changes):
Read more >
Git: Diff per word or character - makandra cards
By default git diff highlights whole lines as changes. ... To diff on a character-by-character basis you can say: git diff --color-words=.
Read more >
Diff - scripts - fuchsia Git repositories
diff --git a/AUTHORS b/AUTHORS deleted file mode 100644 index 4c61558..0000000 --- a/AUTHORS ... action="store", default=None, - help="The file to colorize.
Read more >
GitLens — Git supercharged - Visual Studio Marketplace
A hidden by default, customizable view to search and explore commit histories by message, author, files, id, etc, or visualize comparisons ...
Read more >
Elevate your Terraform Workflow with GitHub Actions
The code herein fits the use case of your average GitOps workflow for Terraform: Develop code against a feature branch and locally run...
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