René's URL Explorer Experiment


Title: Fix version_info cache invalidation, typing, parsing, and serialization by EliahKagan · Pull Request #1838 · gitpython-developers/GitPython · GitHub

Open Graph Title: Fix version_info cache invalidation, typing, parsing, and serialization by EliahKagan · Pull Request #1838 · gitpython-developers/GitPython

X Title: Fix version_info cache invalidation, typing, parsing, and serialization by EliahKagan · Pull Request #1838 · gitpython-developers/GitPython

Description: GitPython is a python library used to interact with Git repositories. - Fix version_info cache invalidation, typing, parsing, and serialization by EliahKagan · Pull Request #1838 · gitpython-developers/GitPython

Open Graph Description: Fixes #1829 - cache invalidation Fixes #1830 - typing Fixes #1833 - parsing Fixes #1836 - serialization Much of the design in the fixes for #1830, #1833, and #1836, as well as why I think it makes ...

X Description: Fixes #1829 - cache invalidation Fixes #1830 - typing Fixes #1833 - parsing Fixes #1836 - serialization Much of the design in the fixes for #1830, #1833, and #1836, as well as why I think it makes ...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:9f444f34-f971-268b-961c-7da833be1e9e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE2CA:2C5AFC:E8A0AD:148BA11:6968E5B9
html-safe-nonceb602027659bc245c9805939b812f46f19a3b222b8569825f8523b68e5258e52a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMkNBOjJDNUFGQzpFOEEwQUQ6MTQ4QkExMTo2OTY4RTVCOSIsInZpc2l0b3JfaWQiOiI3NjQyNDg4MTU1NzEzMTAzMjkwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac2aa4bb9602c0f4ca6d0143a286d50c3a0581b92303221afd15b5858aacee99d2
hovercard-subject-tagpull_request:1739883635
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///pull_requests/show/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/gitpython-developers/GitPython/pull/1838/commits
twitter:imagehttps://opengraph.githubassets.com/a66ce23072c62628792e7b726e51250e407115c8c03690aedf9c6bb5ec6d0851/gitpython-developers/GitPython/pull/1838
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a66ce23072c62628792e7b726e51250e407115c8c03690aedf9c6bb5ec6d0851/gitpython-developers/GitPython/pull/1838
og:image:altFixes #1829 - cache invalidation Fixes #1830 - typing Fixes #1833 - parsing Fixes #1836 - serialization Much of the design in the fixes for #1830, #1833, and #1836, as well as why I think it makes ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameEliahKagan
hostnamegithub.com
expected-hostnamegithub.com
Noneb5416305695900bdab7d289f90ea3d96bf36397112f2ab16f5a5a120f38de085
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
release366035abf3d5b1e31841c97e2fa2ce02a3007a7b
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/gitpython-developers/GitPython/pull/1838/commits#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2FGitPython%2Fpull%2F1838%2Fcommits
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
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
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
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/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%2F1838%2Fcommits
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%2Fpull_requests%2Fshow%2Fcommits&source=header-repo&source_repo=gitpython-developers%2FGitPython
Reloadhttps://github.com/gitpython-developers/GitPython/pull/1838/commits
Reloadhttps://github.com/gitpython-developers/GitPython/pull/1838/commits
Reloadhttps://github.com/gitpython-developers/GitPython/pull/1838/commits
gitpython-developers https://github.com/gitpython-developers
GitPythonhttps://github.com/gitpython-developers/GitPython
Please reload this pagehttps://github.com/gitpython-developers/GitPython/pull/1838/commits
Notifications https://github.com/login?return_to=%2Fgitpython-developers%2FGitPython
Fork 964 https://github.com/login?return_to=%2Fgitpython-developers%2FGitPython
Star 5k https://github.com/login?return_to=%2Fgitpython-developers%2FGitPython
Code https://github.com/gitpython-developers/GitPython
Issues 169 https://github.com/gitpython-developers/GitPython/issues
Pull requests 8 https://github.com/gitpython-developers/GitPython/pulls
Discussions https://github.com/gitpython-developers/GitPython/discussions
Actions https://github.com/gitpython-developers/GitPython/actions
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/gitpython-developers/GitPython/security
Please reload this pagehttps://github.com/gitpython-developers/GitPython/pull/1838/commits
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 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
EliahKagan:refresh-versionhttps://github.com/EliahKagan/GitPython/tree/refresh-version
Conversationhttps://github.com/gitpython-developers/GitPython/pull/1838
Commits19 (19)https://github.com/gitpython-developers/GitPython/pull/1838/commits
Checkshttps://github.com/gitpython-developers/GitPython/pull/1838/checks
Files changedhttps://github.com/gitpython-developers/GitPython/pull/1838/files
Fix version_info cache invalidation, typing, parsing, and serializationhttps://github.com/gitpython-developers/GitPython/pull/1838/commits#top
Byronhttps://github.com/Byron
gitpython-developers:mainhttps://github.com/gitpython-developers/GitPython/tree/main
EliahKagan:refresh-versionhttps://github.com/EliahKagan/GitPython/tree/refresh-version
Use TemporaryFile as a context managerhttps://github.com/gitpython-developers/GitPython/pull/1838/commits/e40fc2cd2677c8f7e7c067583df00572430442ec
https://github.com/EliahKagan
EliahKaganhttps://github.com/gitpython-developers/GitPython/commits?author=EliahKagan
e40fc2chttps://github.com/gitpython-developers/GitPython/pull/1838/commits/e40fc2cd2677c8f7e7c067583df00572430442ec
https://github.com/gitpython-developers/GitPython/tree/e40fc2cd2677c8f7e7c067583df00572430442ec
Test that version_info cacheshttps://github.com/gitpython-developers/GitPython/pull/1838/commits/1de2fdc5234e1d688386f3a345f9cf2f264ba5ea
https://github.com/EliahKagan
EliahKaganhttps://github.com/gitpython-developers/GitPython/commits?author=EliahKagan
1de2fdchttps://github.com/gitpython-developers/GitPython/pull/1838/commits/1de2fdc5234e1d688386f3a345f9cf2f264ba5ea
https://github.com/gitpython-developers/GitPython/tree/1de2fdc5234e1d688386f3a345f9cf2f264ba5ea
Test that version_info caching is per instancehttps://github.com/gitpython-developers/GitPython/pull/1838/commits/3f107d59399538594fa98d5e3956e4cfe707494b
https://github.com/EliahKagan
EliahKaganhttps://github.com/gitpython-developers/GitPython/commits?author=EliahKagan
3f107d5https://github.com/gitpython-developers/GitPython/pull/1838/commits/3f107d59399538594fa98d5e3956e4cfe707494b
https://github.com/gitpython-developers/GitPython/tree/3f107d59399538594fa98d5e3956e4cfe707494b
Have _fake_git fixture take version_infohttps://github.com/gitpython-developers/GitPython/pull/1838/commits/2eac36c951553e8554609fdad026e69e7e1e561e
https://github.com/EliahKagan
EliahKaganhttps://github.com/gitpython-developers/GitPython/commits?author=EliahKagan
2eac36chttps://github.com/gitpython-developers/GitPython/pull/1838/commits/2eac36c951553e8554609fdad026e69e7e1e561e
https://github.com/gitpython-developers/GitPython/tree/2eac36c951553e8554609fdad026e69e7e1e561e
Test version_info on unpickled Git instancehttps://github.com/gitpython-developers/GitPython/pull/1838/commits/2d6311bf35ee1f1bf6a7347edc06327cfa18b118
https://github.com/EliahKagan
EliahKaganhttps://github.com/gitpython-developers/GitPython/commits?author=EliahKagan
2d6311bhttps://github.com/gitpython-developers/GitPython/pull/1838/commits/2d6311bf35ee1f1bf6a7347edc06327cfa18b118
https://github.com/gitpython-developers/GitPython/tree/2d6311bf35ee1f1bf6a7347edc06327cfa18b118
Fix Git.version_info picklinghttps://github.com/gitpython-developers/GitPython/pull/1838/commits/f699a387e19764e591dbca392035a5f9e457b06d
https://github.com/EliahKagan
EliahKaganhttps://github.com/gitpython-developers/GitPython/commits?author=EliahKagan
f699a38https://github.com/gitpython-developers/GitPython/pull/1838/commits/f699a387e19764e591dbca392035a5f9e457b06d
https://github.com/gitpython-developers/GitPython/tree/f699a387e19764e591dbca392035a5f9e457b06d
Use documented version_info in test_index_file_diffinghttps://github.com/gitpython-developers/GitPython/pull/1838/commits/634b61812cd14a13cccb975d5d54d34001c56449
https://github.com/EliahKagan
EliahKaganhttps://github.com/gitpython-developers/GitPython/commits?author=EliahKagan
634b618https://github.com/gitpython-developers/GitPython/pull/1838/commits/634b61812cd14a13cccb975d5d54d34001c56449
https://github.com/gitpython-developers/GitPython/tree/634b61812cd14a13cccb975d5d54d34001c56449
Test that refreshing invalidates cached version_infohttps://github.com/gitpython-developers/GitPython/pull/1838/commits/626a550d22d91dc94b7cc0bfda3fef3ab7f10189
https://github.com/EliahKagan
EliahKaganhttps://github.com/gitpython-developers/GitPython/commits?author=EliahKagan
626a550https://github.com/gitpython-developers/GitPython/pull/1838/commits/626a550d22d91dc94b7cc0bfda3fef3ab7f10189
https://github.com/gitpython-developers/GitPython/tree/626a550d22d91dc94b7cc0bfda3fef3ab7f10189
Test "installing" another git and refreshinghttps://github.com/gitpython-developers/GitPython/pull/1838/commits/9151c38b18474d6642857ece114a39e34fe7dd09
https://github.com/EliahKagan
EliahKaganhttps://github.com/gitpython-developers/GitPython/commits?author=EliahKagan
9151c38https://github.com/gitpython-developers/GitPython/pull/1838/commits/9151c38b18474d6642857ece114a39e34fe7dd09
https://github.com/gitpython-developers/GitPython/tree/9151c38b18474d6642857ece114a39e34fe7dd09
Simplify patched PATH env var constructionhttps://github.com/gitpython-developers/GitPython/pull/1838/commits/c2d72ffde8b046d1f6d5314512fad24bd1b923eb
https://github.com/EliahKagan
EliahKaganhttps://github.com/gitpython-developers/GitPython/commits?author=EliahKagan
c2d72ffhttps://github.com/gitpython-developers/GitPython/pull/1838/commits/c2d72ffde8b046d1f6d5314512fad24bd1b923eb
https://github.com/gitpython-developers/GitPython/tree/c2d72ffde8b046d1f6d5314512fad24bd1b923eb
Make "install" and refresh version_info test portablehttps://github.com/gitpython-developers/GitPython/pull/1838/commits/ee385bd8058473f4fdd06c2ba7f7b980a45e3ada
https://github.com/EliahKagan
EliahKaganhttps://github.com/gitpython-developers/GitPython/commits?author=EliahKagan
ee385bdhttps://github.com/gitpython-developers/GitPython/pull/1838/commits/ee385bd8058473f4fdd06c2ba7f7b980a45e3ada
https://github.com/gitpython-developers/GitPython/tree/ee385bd8058473f4fdd06c2ba7f7b980a45e3ada
Test that version_info is not pickledhttps://github.com/gitpython-developers/GitPython/pull/1838/commits/29406626f985c93404ef283f4e5d922e5bf96978
https://github.com/EliahKagan
EliahKaganhttps://github.com/gitpython-developers/GitPython/commits?author=EliahKagan
2940662https://github.com/gitpython-developers/GitPython/pull/1838/commits/29406626f985c93404ef283f4e5d922e5bf96978
https://github.com/gitpython-developers/GitPython/tree/29406626f985c93404ef283f4e5d922e5bf96978
Fix tests for Python <3.9 which lack Path.with_stemhttps://github.com/gitpython-developers/GitPython/pull/1838/commits/e3e568760f7ee002921de292dd98564fdedf6126
https://github.com/EliahKagan
EliahKaganhttps://github.com/gitpython-developers/GitPython/commits?author=EliahKagan
e3e5687https://github.com/gitpython-developers/GitPython/pull/1838/commits/e3e568760f7ee002921de292dd98564fdedf6126
https://github.com/gitpython-developers/GitPython/tree/e3e568760f7ee002921de292dd98564fdedf6126
Invalidate all cached version_info on refreshhttps://github.com/gitpython-developers/GitPython/pull/1838/commits/24b065e4920e11b10fb6230abcc137e2f49eb8f3
https://github.com/EliahKagan
EliahKaganhttps://github.com/gitpython-developers/GitPython/commits?author=EliahKagan
24b065ehttps://github.com/gitpython-developers/GitPython/pull/1838/commits/24b065e4920e11b10fb6230abcc137e2f49eb8f3
https://github.com/gitpython-developers/GitPython/tree/24b065e4920e11b10fb6230abcc137e2f49eb8f3
Clarify comments; add assertion (helps mypy)https://github.com/gitpython-developers/GitPython/pull/1838/commits/82b0a1e0681a662d5d418277292cf73fd26cae92
https://github.com/EliahKagan
EliahKaganhttps://github.com/gitpython-developers/GitPython/commits?author=EliahKagan
82b0a1ehttps://github.com/gitpython-developers/GitPython/pull/1838/commits/82b0a1e0681a662d5d418277292cf73fd26cae92
https://github.com/gitpython-developers/GitPython/tree/82b0a1e0681a662d5d418277292cf73fd26cae92
Refactor and further clarify commentshttps://github.com/gitpython-developers/GitPython/pull/1838/commits/eb438ee63add2376e885890489cd5e7484cc8a9d
https://github.com/EliahKagan
EliahKaganhttps://github.com/gitpython-developers/GitPython/commits?author=EliahKagan
eb438eehttps://github.com/gitpython-developers/GitPython/pull/1838/commits/eb438ee63add2376e885890489cd5e7484cc8a9d
https://github.com/gitpython-developers/GitPython/tree/eb438ee63add2376e885890489cd5e7484cc8a9d
Fix version_info type hint + more refactoringhttps://github.com/gitpython-developers/GitPython/pull/1838/commits/dc6b90fa5a3617c490e95aeaf37fb80cfd17a215
https://github.com/EliahKagan
EliahKaganhttps://github.com/gitpython-developers/GitPython/commits?author=EliahKagan
dc6b90fhttps://github.com/gitpython-developers/GitPython/pull/1838/commits/dc6b90fa5a3617c490e95aeaf37fb80cfd17a215
https://github.com/gitpython-developers/GitPython/tree/dc6b90fa5a3617c490e95aeaf37fb80cfd17a215
Test version_info parsinghttps://github.com/gitpython-developers/GitPython/pull/1838/commits/ac20325133649876749a12c2f611dbf66f5bc17c
https://github.com/EliahKagan
EliahKaganhttps://github.com/gitpython-developers/GitPython/commits?author=EliahKagan
ac20325https://github.com/gitpython-developers/GitPython/pull/1838/commits/ac20325133649876749a12c2f611dbf66f5bc17c
https://github.com/gitpython-developers/GitPython/tree/ac20325133649876749a12c2f611dbf66f5bc17c
Fix how version_info omits non-numeric fieldshttps://github.com/gitpython-developers/GitPython/pull/1838/commits/629fd87f46a91baccb298bef6fc34ac60ecc5727
https://github.com/EliahKagan
EliahKaganhttps://github.com/gitpython-developers/GitPython/commits?author=EliahKagan
629fd87https://github.com/gitpython-developers/GitPython/pull/1838/commits/629fd87f46a91baccb298bef6fc34ac60ecc5727
https://github.com/gitpython-developers/GitPython/tree/629fd87f46a91baccb298bef6fc34ac60ecc5727
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.