René's URL Explorer Experiment


Title: Support index diffs against the empty tree by puneetdixit200 · Pull Request #2155 · gitpython-developers/GitPython · GitHub

Open Graph Title: Support index diffs against the empty tree by puneetdixit200 · Pull Request #2155 · gitpython-developers/GitPython

X Title: Support index diffs against the empty tree by puneetdixit200 · Pull Request #2155 · gitpython-developers/GitPython

Description: GitPython is a python library used to interact with Git repositories. - Support index diffs against the empty tree by puneetdixit200 · Pull Request #2155 · gitpython-developers/GitPython

Open Graph Description: Related to #2025. IndexFile.diff() is documented as accepting the same targets as Diffable.diff(), including NULL_TREE, but the index-specific implementation rejected NULL_TREE before it could prod...

X Description: Related to #2025. IndexFile.diff() is documented as accepting the same targets as Diffable.diff(), including NULL_TREE, but the index-specific implementation rejected NULL_TREE before it could prod...

Opengraph URL: https://github.com/gitpython-developers/GitPython/pull/2155

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:7dca9284-22f9-7a33-2278-9cb422f6086e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA4F8:DDD15:1564D9B:1EDC27F:6A58C5A3
html-safe-nonce3ff4c38343e364ea44a39a866405ce14162bb20ce234d316ba5c78aec6ecf365
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNEY4OkRERDE1OjE1NjREOUI6MUVEQzI3Rjo2QTU4QzVBMyIsInZpc2l0b3JfaWQiOiI2NDEwNDI4MjEwNzkxMTA1OTU1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac0f1f81c26c46be4350518f624242e2a0b1deae31246d1021ef5203cd708dd675
hovercard-subject-tagpull_request:3721833410
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/gitpython-developers/GitPython/2155/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/ad4db3967a2530ef69402ab7415ec794be0c9432c458126204a340ac46b5c66b/gitpython-developers/GitPython/pull/2155
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ad4db3967a2530ef69402ab7415ec794be0c9432c458126204a340ac46b5c66b/gitpython-developers/GitPython/pull/2155
og:image:altRelated to #2025. IndexFile.diff() is documented as accepting the same targets as Diffable.diff(), including NULL_TREE, but the index-specific implementation rejected NULL_TREE before it could prod...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepuneetdixit200
hostnamegithub.com
expected-hostnamegithub.com
None5f2a0c7865178af3d91dd9f13b0cdfc3c73a2529c873d2780bb4c01271a57ec6
turbo-cache-controlno-cache
go-importgithub.com/gitpython-developers/GitPython git https://github.com/gitpython-developers/GitPython.git
octolytics-dimension-user_id503709
octolytics-dimension-user_logingitpython-developers
octolytics-dimension-repository_id1126087
octolytics-dimension-repository_nwogitpython-developers/GitPython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1126087
octolytics-dimension-repository_network_root_nwogitpython-developers/GitPython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8aae7b8d6caacacf5c66eaeb2702d8dc88d85b4a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/gitpython-developers/GitPython/pull/2155#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2FGitPython%2Fpull%2F2155
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2FGitPython%2Fpull%2F2155
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=gitpython-developers%2FGitPython
Reloadhttps://github.com/gitpython-developers/GitPython/pull/2155
Reloadhttps://github.com/gitpython-developers/GitPython/pull/2155
Reloadhttps://github.com/gitpython-developers/GitPython/pull/2155
Please reload this pagehttps://github.com/gitpython-developers/GitPython/pull/2155
gitpython-developers https://github.com/gitpython-developers
GitPythonhttps://github.com/gitpython-developers/GitPython
Please reload this pagehttps://github.com/gitpython-developers/GitPython/pull/2155
Notifications https://github.com/login?return_to=%2Fgitpython-developers%2FGitPython
Fork 982 https://github.com/login?return_to=%2Fgitpython-developers%2FGitPython
Star 5.1k https://github.com/login?return_to=%2Fgitpython-developers%2FGitPython
Code https://github.com/gitpython-developers/GitPython
Issues 164 https://github.com/gitpython-developers/GitPython/issues
Pull requests 9 https://github.com/gitpython-developers/GitPython/pulls
Discussions https://github.com/gitpython-developers/GitPython/discussions
Actions https://github.com/gitpython-developers/GitPython/actions
Security and quality 12 https://github.com/gitpython-developers/GitPython/security
Insights https://github.com/gitpython-developers/GitPython/pulse
Code https://github.com/gitpython-developers/GitPython
Issues https://github.com/gitpython-developers/GitPython/issues
Pull requests https://github.com/gitpython-developers/GitPython/pulls
Discussions https://github.com/gitpython-developers/GitPython/discussions
Actions https://github.com/gitpython-developers/GitPython/actions
Security and quality https://github.com/gitpython-developers/GitPython/security
Insights https://github.com/gitpython-developers/GitPython/pulse
Byronhttps://github.com/Byron
gitpython-developers:mainhttps://github.com/gitpython-developers/GitPython/tree/main
puneetdixit200:fix-initial-index-diffhttps://github.com/puneetdixit200/GitPython/tree/fix-initial-index-diff
Conversationhttps://github.com/gitpython-developers/GitPython/pull/2155
Commits5 (5)https://github.com/gitpython-developers/GitPython/pull/2155/commits
Checkshttps://github.com/gitpython-developers/GitPython/pull/2155/checks
Files changedhttps://github.com/gitpython-developers/GitPython/pull/2155/files
Support index diffs against the empty treehttps://github.com/gitpython-developers/GitPython/pull/2155#top
Byronhttps://github.com/Byron
gitpython-developers:mainhttps://github.com/gitpython-developers/GitPython/tree/main
puneetdixit200:fix-initial-index-diffhttps://github.com/puneetdixit200/GitPython/tree/fix-initial-index-diff
https://github.com/puneetdixit200
puneetdixit200https://github.com/puneetdixit200
May 21, 2026https://github.com/gitpython-developers/GitPython/pull/2155#issue-4492692014
#2025https://github.com/gitpython-developers/GitPython/issues/2025
Please reload this pagehttps://github.com/gitpython-developers/GitPython/pull/2155
https://github.com/apps/copilot-pull-request-reviewer
Copilothttps://github.com/apps/copilot-pull-request-reviewer
May 21, 2026 07:40https://github.com/gitpython-developers/GitPython/pull/2155#event-25793154861
https://github.com/apps/copilot-pull-request-reviewer
Copilothttps://github.com/apps/copilot-pull-request-reviewer
May 21, 2026 https://github.com/gitpython-developers/GitPython/pull/2155#pullrequestreview-4334931106
View reviewed changes https://github.com/gitpython-developers/GitPython/pull/2155/files
Copilothttps://github.com/apps/copilot-pull-request-reviewer
https://github.com/gitpython-developers/GitPython/pull/2155#pullrequestreview-4334931106
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Add Copilot custom instructionshttps://github.com/gitpython-developers/GitPython/new/main?filename=.github/instructions/*.instructions.md
Learn how to get startedhttps://docs.github.com/en/copilot/customizing-copilot/adding-repository-custom-instructions-for-github-copilot
Please reload this pagehttps://github.com/gitpython-developers/GitPython/pull/2155
git/index/base.pyhttps://github.com/gitpython-developers/GitPython/pull/2155/files#diff-56d167dc0ca4d51682e56b5e602c096f3f264fd1ebb61cc03bbb6c409c866eeb
Please reload this pagehttps://github.com/gitpython-developers/GitPython/pull/2155
git/index/base.pyhttps://github.com/gitpython-developers/GitPython/pull/2155/files#diff-56d167dc0ca4d51682e56b5e602c096f3f264fd1ebb61cc03bbb6c409c866eeb
Please reload this pagehttps://github.com/gitpython-developers/GitPython/pull/2155
git/index/base.pyhttps://github.com/gitpython-developers/GitPython/pull/2155/files#diff-56d167dc0ca4d51682e56b5e602c096f3f264fd1ebb61cc03bbb6c409c866eeb
Please reload this pagehttps://github.com/gitpython-developers/GitPython/pull/2155
test/test_index.pyhttps://github.com/gitpython-developers/GitPython/pull/2155/files#diff-21c27b991511d3d0e3a14b4dfb56017689de2fa114c3edf11c577bd1ce744b72
Please reload this pagehttps://github.com/gitpython-developers/GitPython/pull/2155
Support index diffs against empty treehttps://github.com/gitpython-developers/GitPython/pull/2155/commits/38956826cbf8a4ce8c345285a9d8fc78ef17aa21
3895682https://github.com/gitpython-developers/GitPython/pull/2155/commits/38956826cbf8a4ce8c345285a9d8fc78ef17aa21
https://github.com/puneetdixit200
puneetdixit200https://github.com/puneetdixit200
force-pushedhttps://github.com/gitpython-developers/GitPython/compare/45087742b47ce530e8a8eb1ab817e2ccf039dda4..38956826cbf8a4ce8c345285a9d8fc78ef17aa21
4508774https://github.com/gitpython-developers/GitPython/commit/45087742b47ce530e8a8eb1ab817e2ccf039dda4
3895682https://github.com/gitpython-developers/GitPython/commit/38956826cbf8a4ce8c345285a9d8fc78ef17aa21
Compare https://github.com/gitpython-developers/GitPython/compare/45087742b47ce530e8a8eb1ab817e2ccf039dda4..38956826cbf8a4ce8c345285a9d8fc78ef17aa21
May 21, 2026 07:47https://github.com/gitpython-developers/GitPython/pull/2155#event-25793392979
https://github.com/puneetdixit200
fix: use shared empty tree sha for index diffshttps://github.com/gitpython-developers/GitPython/pull/2155/commits/fe4b66dc621cf6d79da8cb95d20f775c8a373a93
fe4b66dhttps://github.com/gitpython-developers/GitPython/pull/2155/commits/fe4b66dc621cf6d79da8cb95d20f775c8a373a93
https://github.com/apps/copilot-pull-request-reviewer
Copilothttps://github.com/apps/copilot-pull-request-reviewer
May 23, 2026 15:05https://github.com/gitpython-developers/GitPython/pull/2155#event-25884848779
https://github.com/puneetdixit200
puneetdixit200https://github.com/puneetdixit200
May 23, 2026https://github.com/gitpython-developers/GitPython/pull/2155#issuecomment-4525757449
Please reload this pagehttps://github.com/gitpython-developers/GitPython/pull/2155
puneetdixit200https://github.com/puneetdixit200
May 24, 2026 00:00https://github.com/gitpython-developers/GitPython/pull/2155#commits-pushed-da07a64
https://github.com/puneetdixit200
https://github.com/codex
test: allow alternate bad fetch errorshttps://github.com/gitpython-developers/GitPython/pull/2155/commits/da07a64985290b76f6df4495faea8a569ca29288
da07a64https://github.com/gitpython-developers/GitPython/pull/2155/commits/da07a64985290b76f6df4495faea8a569ca29288
https://github.com/puneetdixit200
https://github.com/codex
fix: preserve diff process stderrhttps://github.com/gitpython-developers/GitPython/pull/2155/commits/59cc3bb1f5d43900f94f1c5044766e76b89f6445
59cc3bbhttps://github.com/gitpython-developers/GitPython/pull/2155/commits/59cc3bb1f5d43900f94f1c5044766e76b89f6445
https://github.com/puneetdixit200
test: accept stderr in string process adapterhttps://github.com/gitpython-developers/GitPython/pull/2155/commits/4de94bc0e3ecc65e40a16cf19dd934ac3b413023
4de94bchttps://github.com/gitpython-developers/GitPython/pull/2155/commits/4de94bc0e3ecc65e40a16cf19dd934ac3b413023
https://github.com/Byron
Byronhttps://github.com/Byron
May 27, 2026https://github.com/gitpython-developers/GitPython/pull/2155#issuecomment-4550783236
Please reload this pagehttps://github.com/gitpython-developers/GitPython/pull/2155
https://github.com/Byron
Byronhttps://github.com/Byron
a6dcd1ehttps://github.com/gitpython-developers/GitPython/commit/a6dcd1e81cf9bbb006e23d92deb87f469842db53
May 27, 2026https://github.com/gitpython-developers/GitPython/pull/2155#event-25995687546
Please reload this pagehttps://github.com/gitpython-developers/GitPython/pull/2155
https://github.co/hiddenchars
https://github.com/gitpython-developers/GitPython/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2FGitPython%2Fpull%2F2155
Copilot code review https://github.com/apps/copilot-pull-request-reviewer
Copilot https://github.com/apps/copilot-pull-request-reviewer
Please reload this pagehttps://github.com/gitpython-developers/GitPython/pull/2155
https://github.com/puneetdixit200
https://github.com/Byron
https://github.com/apps/copilot-pull-request-reviewer
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.