diff2html | Pretty diff to html javascript library
kandi X-RAY | diff2html Summary
kandi X-RAY | diff2html Summary
diff2html generates pretty HTML diffs from git diff or unified diff output.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of diff2html
diff2html Key Features
diff2html Examples and Code Snippets
Community Discussions
Trending Discussions on diff2html
QUESTION
Whenever you perform a pull request, you get a nice diff of the changes of this PR, with the master.
I want to be able to save these PRs - these diffs actually, in order to study a particular topic.
However, it is impossible to save the html page to either html, or pdf properly.
So with a help from a member on this site, i found diff2html
, which exports a diff to html.
Using this answer: How to make git diff show the same result as github's pull request diff?
I did git diff feature/BRANCH_I_AM_INTERESTED_IN...master | diff2html -i stdin -F diff.html
However, this gives me many many results. It includes many many files that were changed at a much later time - not at the time that the PR was merged.
I guess what this does is a comparison with the latest version of this branch, to the master as it is in the current time.
However, a PR diff is the comparison of the branch with the master at the past time.
So, is there a way to get the diff of the PR - in other words, get the diff with the branch and the master but at the time the PR was merged?
...ANSWER
Answered 2022-Feb-22 at 17:46First off, let's fix the syntax of this command:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install diff2html
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page