Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Large github commit diff not shown

Tags:

git

github

diff

This happens to me both with Compare view as well as standard commits that are large in the amount of files changed.

The screenshot below is from a compare between two branches with 380 files changed. The files at the beginning of the diff log have their diffs visualized but at a certain point down the page it stops visualizing the diffs. I understand you don't want massive pages but I can't seem to find a way to view a file's diff individually. Instead I have to check these both out locally and do the diff manually.

Does anyone have a simpler solution whether it be software driven or (preferably) a link i'm missing on github?

Diff screenshot

like image 782
ryan Avatar asked Mar 14 '12 13:03

ryan


People also ask

Why is git diff not showing?

In answer to the original question, git diff isn't showing anything because you have a brand new directory, with a newly added file, but there are zero changes in the file for git diff to show. git status is showing that you added a new file, but git diff is for showing changes within files.

How do I see all git diff?

The diff can be done with git diff (followed by the filename or nothing if you want to see the diff of all modified files). But if you already did something like git add * , you have to undo with git restore --staged .

What does ++ mean in git diff?

When viewing a combined diff, if the two files you're comparing have a line that's different from what they were merged into, you will see the ++ to represent: one line that was added does not appear in either file1 or file2.


2 Answers

Adding .patch to the end of the URL somewhat helps. Removes the nice UI and comment functionality, of course.

An example. If your pull request is: https://github.com/JustinTulloss/zeromq.node/pull/47, then the patch can be found at https://github.com/JustinTulloss/zeromq.node/pull/47.patch

like image 67
Simon Lindholm Avatar answered Sep 24 '22 14:09

Simon Lindholm


Official support answer as of Feb 19th / 2013 via Brian Levin @github.

We have some limits on diffs that we show in the browser in order to keep the pull request and compare pages working. Currently, we cut them off at 300 files, a total diff of 1MB, and an individual diff of 100KB.

If your diffs exceed the limits and can't be viewed online, you can always pull the changes locally and view the diff there. It may not be as convenient for you, but it'll get the job done.

like image 32
sjakubowski Avatar answered Sep 25 '22 14:09

sjakubowski