| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:2812156e-9ba4-b49b-18a3-8d957a3e8185 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E220:16F70B:305E04:3F5560:6A616124 |
| html-safe-nonce | 134b7a1e57b533af1635b0c430b1aa6a2159d8f7471dcedb3043b46e1f4b8bfd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMjIwOjE2RjcwQjozMDVFMDQ6M0Y1NTYwOjZBNjE2MTI0IiwidmlzaXRvcl9pZCI6IjIxMzg1NjUwMDQxNjU3MzQ2OTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c1d030526398a66fc2f02460839861a5146f02a4f1778f7f57282a7acc3d065c |
| hovercard-subject-tag | pull_request:3721833410 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/gitpython-developers/GitPython/2155/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/ad4db3967a2530ef69402ab7415ec794be0c9432c458126204a340ac46b5c66b/gitpython-developers/GitPython/pull/2155 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ad4db3967a2530ef69402ab7415ec794be0c9432c458126204a340ac46b5c66b/gitpython-developers/GitPython/pull/2155 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | puneetdixit200 |
| hostname | github.com |
| expected-hostname | github.com |
| None | c258d2b06b498220e3b94af28b26bbbf58f4203a6373725f779afcc867afd263 |
| turbo-cache-control | no-cache |
| 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 | 5f67bc431418961e0814f1eb30a4231250e4726d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://redirect.github.com/gitpython-developers/GitPython/pull/2155#start-of-content |
|
| https://redirect.github.com/ |
|
Sign in
| https://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2FGitPython%2Fpull%2F2155 |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| Code QualityEnforce quality at merge | https://github.com/features/code-quality |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2FGitPython%2Fpull%2F2155 |
|
Sign up
| https://redirect.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 |
| Reload | https://redirect.github.com/gitpython-developers/GitPython/pull/2155 |
| Reload | https://redirect.github.com/gitpython-developers/GitPython/pull/2155 |
| Reload | https://redirect.github.com/gitpython-developers/GitPython/pull/2155 |
| Please reload this page | https://redirect.github.com/gitpython-developers/GitPython/pull/2155 |
|
gitpython-developers
| https://redirect.github.com/gitpython-developers |
| GitPython | https://redirect.github.com/gitpython-developers/GitPython |
| Please reload this page | https://redirect.github.com/gitpython-developers/GitPython/pull/2155 |
|
Notifications
| https://redirect.github.com/login?return_to=%2Fgitpython-developers%2FGitPython |
|
Fork
982
| https://redirect.github.com/login?return_to=%2Fgitpython-developers%2FGitPython |
|
Star
5.1k
| https://redirect.github.com/login?return_to=%2Fgitpython-developers%2FGitPython |
|
Code
| https://redirect.github.com/gitpython-developers/GitPython |
|
Issues
15
| https://redirect.github.com/gitpython-developers/GitPython/issues |
|
Pull requests
3
| https://redirect.github.com/gitpython-developers/GitPython/pulls |
|
Discussions
| https://redirect.github.com/gitpython-developers/GitPython/discussions |
|
Actions
| https://redirect.github.com/gitpython-developers/GitPython/actions |
|
Security and quality
16
| https://redirect.github.com/gitpython-developers/GitPython/security |
|
Insights
| https://redirect.github.com/gitpython-developers/GitPython/pulse |
|
Code
| https://redirect.github.com/gitpython-developers/GitPython |
|
Issues
| https://redirect.github.com/gitpython-developers/GitPython/issues |
|
Pull requests
| https://redirect.github.com/gitpython-developers/GitPython/pulls |
|
Discussions
| https://redirect.github.com/gitpython-developers/GitPython/discussions |
|
Actions
| https://redirect.github.com/gitpython-developers/GitPython/actions |
|
Security and quality
| https://redirect.github.com/gitpython-developers/GitPython/security |
|
Insights
| https://redirect.github.com/gitpython-developers/GitPython/pulse |
| Byron | https://redirect.github.com/Byron |
| gitpython-developers:main | https://redirect.github.com/gitpython-developers/GitPython/tree/main |
| puneetdixit200:fix-initial-index-diff | https://redirect.github.com/puneetdixit200/GitPython/tree/fix-initial-index-diff |
| Conversation | https://redirect.github.com/gitpython-developers/GitPython/pull/2155 |
| Commits5 (5) | https://redirect.github.com/gitpython-developers/GitPython/pull/2155/commits |
| Checks | https://redirect.github.com/gitpython-developers/GitPython/pull/2155/checks |
| Files changed | https://redirect.github.com/gitpython-developers/GitPython/pull/2155/files |
| Support index diffs against the empty tree | https://redirect.github.com/gitpython-developers/GitPython/pull/2155#top |
| Byron | https://redirect.github.com/Byron |
| gitpython-developers:main | https://redirect.github.com/gitpython-developers/GitPython/tree/main |
| puneetdixit200:fix-initial-index-diff | https://redirect.github.com/puneetdixit200/GitPython/tree/fix-initial-index-diff |
|
| https://redirect.github.com/puneetdixit200 |
| puneetdixit200 | https://redirect.github.com/puneetdixit200 |
| May 21, 2026 | https://redirect.github.com/gitpython-developers/GitPython/pull/2155#issue-4492692014 |
| #2025 | https://github.com/gitpython-developers/GitPython/issues/2025 |
| Please reload this page | https://redirect.github.com/gitpython-developers/GitPython/pull/2155 |
|
| https://redirect.github.com/apps/copilot-pull-request-reviewer |
| Copilot | https://redirect.github.com/apps/copilot-pull-request-reviewer |
| May 21, 2026 07:40 | https://redirect.github.com/gitpython-developers/GitPython/pull/2155#event-25793154861 |
|
| https://redirect.github.com/apps/copilot-pull-request-reviewer |
| Copilot | https://redirect.github.com/apps/copilot-pull-request-reviewer |
|
May 21, 2026
| https://redirect.github.com/gitpython-developers/GitPython/pull/2155#pullrequestreview-4334931106 |
|
View reviewed changes
| https://redirect.github.com/gitpython-developers/GitPython/pull/2155/files |
| Copilot | https://redirect.github.com/apps/copilot-pull-request-reviewer |
| https://redirect.github.com/gitpython-developers/GitPython/pull/2155#pullrequestreview-4334931106 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Add Copilot custom instructions | https://redirect.github.com/gitpython-developers/GitPython/new/main?filename=.github/instructions/*.instructions.md |
| Learn how to get started | https://docs.github.com/en/copilot/customizing-copilot/adding-repository-custom-instructions-for-github-copilot |
| Please reload this page | https://redirect.github.com/gitpython-developers/GitPython/pull/2155 |
| git/index/base.py | https://redirect.github.com/gitpython-developers/GitPython/pull/2155/files#diff-56d167dc0ca4d51682e56b5e602c096f3f264fd1ebb61cc03bbb6c409c866eeb |
| Please reload this page | https://redirect.github.com/gitpython-developers/GitPython/pull/2155 |
| git/index/base.py | https://redirect.github.com/gitpython-developers/GitPython/pull/2155/files#diff-56d167dc0ca4d51682e56b5e602c096f3f264fd1ebb61cc03bbb6c409c866eeb |
| Please reload this page | https://redirect.github.com/gitpython-developers/GitPython/pull/2155 |
| git/index/base.py | https://redirect.github.com/gitpython-developers/GitPython/pull/2155/files#diff-56d167dc0ca4d51682e56b5e602c096f3f264fd1ebb61cc03bbb6c409c866eeb |
| Please reload this page | https://redirect.github.com/gitpython-developers/GitPython/pull/2155 |
| test/test_index.py | https://redirect.github.com/gitpython-developers/GitPython/pull/2155/files#diff-21c27b991511d3d0e3a14b4dfb56017689de2fa114c3edf11c577bd1ce744b72 |
| Please reload this page | https://redirect.github.com/gitpython-developers/GitPython/pull/2155 |
| Support index diffs against empty tree | https://redirect.github.com/gitpython-developers/GitPython/pull/2155/commits/38956826cbf8a4ce8c345285a9d8fc78ef17aa21 |
| 3895682 | https://redirect.github.com/gitpython-developers/GitPython/pull/2155/commits/38956826cbf8a4ce8c345285a9d8fc78ef17aa21 |
| https://redirect.github.com/puneetdixit200 |
| puneetdixit200 | https://redirect.github.com/puneetdixit200 |
| force-pushed | https://redirect.github.com/gitpython-developers/GitPython/compare/45087742b47ce530e8a8eb1ab817e2ccf039dda4..38956826cbf8a4ce8c345285a9d8fc78ef17aa21 |
| 4508774 | https://redirect.github.com/gitpython-developers/GitPython/commit/45087742b47ce530e8a8eb1ab817e2ccf039dda4 |
| 3895682 | https://redirect.github.com/gitpython-developers/GitPython/commit/38956826cbf8a4ce8c345285a9d8fc78ef17aa21 |
|
Compare
| https://redirect.github.com/gitpython-developers/GitPython/compare/45087742b47ce530e8a8eb1ab817e2ccf039dda4..38956826cbf8a4ce8c345285a9d8fc78ef17aa21 |
| May 21, 2026 07:47 | https://redirect.github.com/gitpython-developers/GitPython/pull/2155#event-25793392979 |
|
| https://redirect.github.com/puneetdixit200 |
| fix: use shared empty tree sha for index diffs | https://redirect.github.com/gitpython-developers/GitPython/pull/2155/commits/fe4b66dc621cf6d79da8cb95d20f775c8a373a93 |
| fe4b66d | https://redirect.github.com/gitpython-developers/GitPython/pull/2155/commits/fe4b66dc621cf6d79da8cb95d20f775c8a373a93 |
|
| https://redirect.github.com/apps/copilot-pull-request-reviewer |
| Copilot | https://redirect.github.com/apps/copilot-pull-request-reviewer |
| May 23, 2026 15:05 | https://redirect.github.com/gitpython-developers/GitPython/pull/2155#event-25884848779 |
| https://redirect.github.com/puneetdixit200 |
| puneetdixit200 | https://redirect.github.com/puneetdixit200 |
| May 23, 2026 | https://redirect.github.com/gitpython-developers/GitPython/pull/2155#issuecomment-4525757449 |
| Please reload this page | https://redirect.github.com/gitpython-developers/GitPython/pull/2155 |
| puneetdixit200 | https://redirect.github.com/puneetdixit200 |
| May 24, 2026 00:00 | https://redirect.github.com/gitpython-developers/GitPython/pull/2155#commits-pushed-da07a64 |
|
| https://redirect.github.com/puneetdixit200 |
|
| https://redirect.github.com/codex |
| test: allow alternate bad fetch errors | https://redirect.github.com/gitpython-developers/GitPython/pull/2155/commits/da07a64985290b76f6df4495faea8a569ca29288 |
| da07a64 | https://redirect.github.com/gitpython-developers/GitPython/pull/2155/commits/da07a64985290b76f6df4495faea8a569ca29288 |
|
| https://redirect.github.com/puneetdixit200 |
|
| https://redirect.github.com/codex |
| fix: preserve diff process stderr | https://redirect.github.com/gitpython-developers/GitPython/pull/2155/commits/59cc3bb1f5d43900f94f1c5044766e76b89f6445 |
| 59cc3bb | https://redirect.github.com/gitpython-developers/GitPython/pull/2155/commits/59cc3bb1f5d43900f94f1c5044766e76b89f6445 |
|
| https://redirect.github.com/puneetdixit200 |
| test: accept stderr in string process adapter | https://redirect.github.com/gitpython-developers/GitPython/pull/2155/commits/4de94bc0e3ecc65e40a16cf19dd934ac3b413023 |
| 4de94bc | https://redirect.github.com/gitpython-developers/GitPython/pull/2155/commits/4de94bc0e3ecc65e40a16cf19dd934ac3b413023 |
| https://redirect.github.com/Byron |
| Byron | https://redirect.github.com/Byron |
| May 27, 2026 | https://redirect.github.com/gitpython-developers/GitPython/pull/2155#issuecomment-4550783236 |
| Please reload this page | https://redirect.github.com/gitpython-developers/GitPython/pull/2155 |
| https://redirect.github.com/Byron |
| Byron | https://redirect.github.com/Byron |
| a6dcd1e | https://redirect.github.com/gitpython-developers/GitPython/commit/a6dcd1e81cf9bbb006e23d92deb87f469842db53 |
| May 27, 2026 | https://github.com/gitpython-developers/GitPython/pull/2155#event-25995687546 |
| Please reload this page | https://redirect.github.com/gitpython-developers/GitPython/pull/2155 |
| https://redirect.github.com/Byron |
| Byron | https://redirect.github.com/Byron |
|
Jul 20, 2026
| https://redirect.github.com/gitpython-developers/GitPython/pull/2155#ref-issue-3055244662 |
|
IndexFile.diff(None) returns empty after init -> add -> write -> read sequence on a new repository
#2025
| https://redirect.github.com/gitpython-developers/GitPython/issues/2025 |
| https://github.co/hiddenchars |
| https://redirect.github.com/gitpython-developers/GitPython/pull/{{ revealButtonHref }} |
| Sign up for free | https://redirect.github.com/join?source=comment-repo |
| Sign in to comment | https://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2FGitPython%2Fpull%2F2155 |
|
Copilot code review
| https://redirect.github.com/apps/copilot-pull-request-reviewer |
|
Copilot
| https://redirect.github.com/apps/copilot-pull-request-reviewer |
| Please reload this page | https://redirect.github.com/gitpython-developers/GitPython/pull/2155 |
|
| https://redirect.github.com/puneetdixit200 |
|
| https://redirect.github.com/Byron |
|
| https://redirect.github.com/apps/copilot-pull-request-reviewer |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |