Title: issue with diff method · Issue #501 · gitpython-developers/GitPython · GitHub
Open Graph Title: issue with diff method · Issue #501 · gitpython-developers/GitPython
X Title: issue with diff method · Issue #501 · gitpython-developers/GitPython
Description: I'm using gitpython to collect diff information between a commit and his parent. Generally, the following code works fine when the number of diffs to retrieve is small: diffs = c.parents[0].diff(c, create_patch=True) Conversely, when the...
Open Graph Description: I'm using gitpython to collect diff information between a commit and his parent. Generally, the following code works fine when the number of diffs to retrieve is small: diffs = c.parents[0].diff(c,...
X Description: I'm using gitpython to collect diff information between a commit and his parent. Generally, the following code works fine when the number of diffs to retrieve is small: diffs = c.parents[0].dif...
Opengraph URL: https://github.com/gitpython-developers/GitPython/issues/501
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"issue with diff method","articleBody":"I'm using gitpython to collect diff information between a commit and his parent.\nGenerally, the following code works fine when the number of diffs to retrieve is small:\n`diffs = c.parents[0].diff(c, create_patch=True)`\nConversely, when the number of diffs is huge (https://git.eclipse.org/c/papyrus/org.eclipse.papyrus.git/commit/?id=f5f817279baa2008450aa32b18e576c2fcda02bb), that code is not able to produce an output after 24h (at least).\nIs there another way I could use to retrieve the diff information between two commits?\n\nBelow you can find the code to replicate this behaviour:\n\n``` python\nfrom git import *\n\nREPO_PATH = \"\"C:/Users/.../org.eclipse.papyrus\"\" (you can clone it from here: https://git.eclipse.org/c/papyrus/org.eclipse.papyrus.git/)\n\nBRANCH = \"2.0.0\"\n\ndef main():\n repo = Repo(REPO_PATH, odbt=GitCmdObjectDB)\n reference = [r for r in repo.references if r.name == BRANCH][0]\n for c in repo.iter_commits(rev=reference):\n if c.hexsha == 'f5f817279baa2008450aa32b18e576c2fcda02bb':\n diffs = c.parents[0].diff(c, create_patch=True)\n print str(len(diffs))\n break\n\nif __name__ == \"__main__\":\n main()\n```\n","author":{"url":"https://github.com/valeriocos","@type":"Person","name":"valeriocos"},"datePublished":"2016-08-21T17:45:18.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/501/GitPython/issues/501"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5e8031b7-8752-3583-51dd-46684cff7a11 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EAEA:1F7E80:3C8C392:3D564C9:696867D8 |
| html-safe-nonce | b7264e51b4e8fd4b218e1f958e476e1659a04e43b4fd1ee99b8100f1420a7563 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQUVBOjFGN0U4MDozQzhDMzkyOjNENTY0Qzk6Njk2ODY3RDgiLCJ2aXNpdG9yX2lkIjoiMzUwMzM4OTIzMDA4OTM5ODIzMiIsInJlZ2lvbl9lZGdlIjoic2VhIiwicmVnaW9uX3JlbmRlciI6InNlYSJ9 |
| visitor-hmac | 18ff6b8fd8d6e57a7fc58c839759b6dac0906b3687731c1a8ff9ed5a35cfbbb1 |
| hovercard-subject-tag | issue:172331914 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/gitpython-developers/GitPython/501/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ab2d8c8d35a528ed920f220ccaf87e1eb605af77c363f0686174fc7687101de2/gitpython-developers/GitPython/issues/501 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ab2d8c8d35a528ed920f220ccaf87e1eb605af77c363f0686174fc7687101de2/gitpython-developers/GitPython/issues/501 |
| og:image:alt | I'm using gitpython to collect diff information between a commit and his parent. Generally, the following code works fine when the number of diffs to retrieve is small: diffs = c.parents[0].diff(c,... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | valeriocos |
| hostname | github.com |
| expected-hostname | github.com |
| None | 50f46dc2d6192249fd8ebf20e76c800f4f2596d4a5f3ab63dd63a754df154f54 |
| turbo-cache-control | no-preview |
| go-import | github.com/gitpython-developers/GitPython git https://github.com/gitpython-developers/GitPython.git |
| octolytics-dimension-user_id | 503709 |
| octolytics-dimension-user_login | gitpython-developers |
| octolytics-dimension-repository_id | 1126087 |
| octolytics-dimension-repository_nwo | gitpython-developers/GitPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1126087 |
| octolytics-dimension-repository_network_root_nwo | gitpython-developers/GitPython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | fef287f17234b4529a4b112a3d47fe8551e32ddd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width