René's URL Explorer Experiment


Title: Use type safe pointer instead of void * for New by srajko · Pull Request #957 · nodegit/nodegit · GitHub

Open Graph Title: Use type safe pointer instead of void * for New by srajko · Pull Request #957 · nodegit/nodegit

X Title: Use type safe pointer instead of void * for New by srajko · Pull Request #957 · nodegit/nodegit

Description: Ran into this as part of #955. Changing the raw pointer from void * to const {{ cType }} * to add type safety. The change actually caught a problem in struct_content.cc where we were sometimes taking the address of a pointer and passing that in instead of the pointer (for git_checkout_options.baseline, we were sending in a git_tree ** instead of a git_tree * to New).

Open Graph Description: Ran into this as part of #955. Changing the raw pointer from void * to const {{ cType }} * to add type safety. The change actually caught a problem in struct_content.cc where we were sometimes tak...

X Description: Ran into this as part of #955. Changing the raw pointer from void * to const {{ cType }} * to add type safety. The change actually caught a problem in struct_content.cc where we were sometimes tak...

Opengraph URL: https://github.com/nodegit/nodegit/pull/957

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:47895ccc-7836-ed3b-eec5-a4f820aef8d2
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE006:1BDD2D:16C50EC:1D0C120:69756827
html-safe-noncec614fd9b2d3e946024b3d03749957e180890dbd7a765d00333ec233119e26a36
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMDA2OjFCREQyRDoxNkM1MEVDOjFEMEMxMjA6Njk3NTY4MjciLCJ2aXNpdG9yX2lkIjoiNjkwOTY5Mjk0MzE4MzIxMDUzNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacc2f4e9de9383ed256e7f08f4c7152b9f5e9808113f145242738fbb7277dadf5d
hovercard-subject-tagpull_request:63409716
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/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/nodegit/nodegit/pull/957/files
twitter:imagehttps://avatars.githubusercontent.com/u/291007?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/291007?s=400&v=4
og:image:altRan into this as part of #955. Changing the raw pointer from void * to const {{ cType }} * to add type safety. The change actually caught a problem in struct_content.cc where we were sometimes tak...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/nodegit/nodegit git https://github.com/nodegit/nodegit.git
octolytics-dimension-user_id657068
octolytics-dimension-user_loginnodegit
octolytics-dimension-repository_id1383170
octolytics-dimension-repository_nwonodegit/nodegit
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1383170
octolytics-dimension-repository_network_root_nwonodegit/nodegit
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release488b30e96dfd057fbbe44c6665ccbc030b729dde
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/nodegit/nodegit/pull/957/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodegit%2Fnodegit%2Fpull%2F957%2Ffiles
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%2Fnodegit%2Fnodegit%2Fpull%2F957%2Ffiles
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%2Ffiles&source=header-repo&source_repo=nodegit%2Fnodegit
Reloadhttps://github.com/nodegit/nodegit/pull/957/files
Reloadhttps://github.com/nodegit/nodegit/pull/957/files
Reloadhttps://github.com/nodegit/nodegit/pull/957/files
nodegit https://github.com/nodegit
nodegithttps://github.com/nodegit/nodegit
Notifications https://github.com/login?return_to=%2Fnodegit%2Fnodegit
Fork 697 https://github.com/login?return_to=%2Fnodegit%2Fnodegit
Star 5.8k https://github.com/login?return_to=%2Fnodegit%2Fnodegit
Code https://github.com/nodegit/nodegit
Issues 343 https://github.com/nodegit/nodegit/issues
Pull requests 19 https://github.com/nodegit/nodegit/pulls
Actions https://github.com/nodegit/nodegit/actions
Projects 0 https://github.com/nodegit/nodegit/projects
Security 0 https://github.com/nodegit/nodegit/security
Insights https://github.com/nodegit/nodegit/pulse
Code https://github.com/nodegit/nodegit
Issues https://github.com/nodegit/nodegit/issues
Pull requests https://github.com/nodegit/nodegit/pulls
Actions https://github.com/nodegit/nodegit/actions
Projects https://github.com/nodegit/nodegit/projects
Security https://github.com/nodegit/nodegit/security
Insights https://github.com/nodegit/nodegit/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fnodegit%2Fnodegit%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fnodegit%2Fnodegit%2Fissues%2Fnew%2Fchoose
johnhaley81https://github.com/johnhaley81
nodegit:masterhttps://github.com/nodegit/nodegit/tree/master
srajko:new-type-safetyhttps://github.com/srajko/nodegit/tree/new-type-safety
Conversation 2 https://github.com/nodegit/nodegit/pull/957
Commits 1 https://github.com/nodegit/nodegit/pull/957/commits
Checks 0 https://github.com/nodegit/nodegit/pull/957/checks
Files changed https://github.com/nodegit/nodegit/pull/957/files
Please reload this pagehttps://github.com/nodegit/nodegit/pull/957/files
Use type safe pointer instead of void * for New https://github.com/nodegit/nodegit/pull/957/files#top
Show all changes 1 commit https://github.com/nodegit/nodegit/pull/957/files
fb1bd51 Use type safe pointer instead of void * for New srajko Mar 18, 2016 https://github.com/nodegit/nodegit/pull/957/commits/fb1bd51fbc81ced2e1bb4285456f245b59eccd8c
Clear filters https://github.com/nodegit/nodegit/pull/957/files
Please reload this pagehttps://github.com/nodegit/nodegit/pull/957/files
Please reload this pagehttps://github.com/nodegit/nodegit/pull/957/files
wrapper.h https://github.com/nodegit/nodegit/pull/957/files#diff-66b8eb4a45d3e5f464bb816ff292442128df10378ceb442db56d640393c2b0bc
convenient_patch.cc https://github.com/nodegit/nodegit/pull/957/files#diff-86847be507a9a918431f04c09595e3c558ebe3dcdb186a50f4f2965836a055d2
wrapper.cc https://github.com/nodegit/nodegit/pull/957/files#diff-2f9d4631288eaf9a6660398d966c0c596ba02d46e5f030fc24bdb223f4318c8a
callback_helpers.cc https://github.com/nodegit/nodegit/pull/957/files#diff-69c0456eeba2003f1d45121f0928c0eecea45117994a7221a16bc0884f14709a
convert_to_v8.cc https://github.com/nodegit/nodegit/pull/957/files#diff-844fb3431ed2a525508be43f537de510b570829d8f15227f514ca2be47518797
field_accessors.cc https://github.com/nodegit/nodegit/pull/957/files#diff-191a2d4dc20d49214a2b55f9d415677dc81fd14fe7c560a7598aefb46a0169d3
class_content.cc https://github.com/nodegit/nodegit/pull/957/files#diff-28618c5cbab5c17f45ffad773d9ad5486ff9c7b8b31c916d53616c98c751daa1
class_header.h https://github.com/nodegit/nodegit/pull/957/files#diff-25ee49e4f3bdf45b52b23f17fb4fed35cd78702ba9e670d4f51cdfee3ae4296a
struct_content.cc https://github.com/nodegit/nodegit/pull/957/files#diff-242813fbf3504e90c186d8cd2636a37035a714fdef02498b6774d61b6a256978
struct_header.h https://github.com/nodegit/nodegit/pull/957/files#diff-46b0fc4d3930421a977f56345238c15ad1e71654d1a831d9a011f8ca1784181d
generate/templates/manual/include/wrapper.hhttps://github.com/nodegit/nodegit/pull/957/files#diff-66b8eb4a45d3e5f464bb816ff292442128df10378ceb442db56d640393c2b0bc
View file https://github.com/srajko/nodegit/blob/fb1bd51fbc81ced2e1bb4285456f245b59eccd8c/generate/templates/manual/include/wrapper.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodegit/nodegit/pull/957/{{ revealButtonHref }}
https://github.com/nodegit/nodegit/pull/957/files#diff-66b8eb4a45d3e5f464bb816ff292442128df10378ceb442db56d640393c2b0bc
https://github.com/nodegit/nodegit/pull/957/files#diff-66b8eb4a45d3e5f464bb816ff292442128df10378ceb442db56d640393c2b0bc
generate/templates/manual/src/convenient_patch.cchttps://github.com/nodegit/nodegit/pull/957/files#diff-86847be507a9a918431f04c09595e3c558ebe3dcdb186a50f4f2965836a055d2
View file https://github.com/srajko/nodegit/blob/fb1bd51fbc81ced2e1bb4285456f245b59eccd8c/generate/templates/manual/src/convenient_patch.cc
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodegit/nodegit/pull/957/{{ revealButtonHref }}
https://github.com/nodegit/nodegit/pull/957/files#diff-86847be507a9a918431f04c09595e3c558ebe3dcdb186a50f4f2965836a055d2
https://github.com/nodegit/nodegit/pull/957/files#diff-86847be507a9a918431f04c09595e3c558ebe3dcdb186a50f4f2965836a055d2
https://github.com/nodegit/nodegit/pull/957/files#diff-86847be507a9a918431f04c09595e3c558ebe3dcdb186a50f4f2965836a055d2
generate/templates/manual/src/wrapper.cchttps://github.com/nodegit/nodegit/pull/957/files#diff-2f9d4631288eaf9a6660398d966c0c596ba02d46e5f030fc24bdb223f4318c8a
View file https://github.com/srajko/nodegit/blob/fb1bd51fbc81ced2e1bb4285456f245b59eccd8c/generate/templates/manual/src/wrapper.cc
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodegit/nodegit/pull/957/{{ revealButtonHref }}
https://github.com/nodegit/nodegit/pull/957/files#diff-2f9d4631288eaf9a6660398d966c0c596ba02d46e5f030fc24bdb223f4318c8a
https://github.com/nodegit/nodegit/pull/957/files#diff-2f9d4631288eaf9a6660398d966c0c596ba02d46e5f030fc24bdb223f4318c8a
generate/templates/partials/callback_helpers.cchttps://github.com/nodegit/nodegit/pull/957/files#diff-69c0456eeba2003f1d45121f0928c0eecea45117994a7221a16bc0884f14709a
View file https://github.com/srajko/nodegit/blob/fb1bd51fbc81ced2e1bb4285456f245b59eccd8c/generate/templates/partials/callback_helpers.cc
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodegit/nodegit/pull/957/{{ revealButtonHref }}
https://github.com/nodegit/nodegit/pull/957/files#diff-69c0456eeba2003f1d45121f0928c0eecea45117994a7221a16bc0884f14709a
https://github.com/nodegit/nodegit/pull/957/files#diff-69c0456eeba2003f1d45121f0928c0eecea45117994a7221a16bc0884f14709a
generate/templates/partials/convert_to_v8.cchttps://github.com/nodegit/nodegit/pull/957/files#diff-844fb3431ed2a525508be43f537de510b570829d8f15227f514ca2be47518797
View file https://github.com/srajko/nodegit/blob/fb1bd51fbc81ced2e1bb4285456f245b59eccd8c/generate/templates/partials/convert_to_v8.cc
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodegit/nodegit/pull/957/{{ revealButtonHref }}
https://github.com/nodegit/nodegit/pull/957/files#diff-844fb3431ed2a525508be43f537de510b570829d8f15227f514ca2be47518797
https://github.com/nodegit/nodegit/pull/957/files#diff-844fb3431ed2a525508be43f537de510b570829d8f15227f514ca2be47518797
generate/templates/partials/field_accessors.cchttps://github.com/nodegit/nodegit/pull/957/files#diff-191a2d4dc20d49214a2b55f9d415677dc81fd14fe7c560a7598aefb46a0169d3
View file https://github.com/srajko/nodegit/blob/fb1bd51fbc81ced2e1bb4285456f245b59eccd8c/generate/templates/partials/field_accessors.cc
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodegit/nodegit/pull/957/{{ revealButtonHref }}
https://github.com/nodegit/nodegit/pull/957/files#diff-191a2d4dc20d49214a2b55f9d415677dc81fd14fe7c560a7598aefb46a0169d3
https://github.com/nodegit/nodegit/pull/957/files#diff-191a2d4dc20d49214a2b55f9d415677dc81fd14fe7c560a7598aefb46a0169d3
generate/templates/templates/class_content.cchttps://github.com/nodegit/nodegit/pull/957/files#diff-28618c5cbab5c17f45ffad773d9ad5486ff9c7b8b31c916d53616c98c751daa1
View file https://github.com/srajko/nodegit/blob/fb1bd51fbc81ced2e1bb4285456f245b59eccd8c/generate/templates/templates/class_content.cc
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodegit/nodegit/pull/957/{{ revealButtonHref }}
https://github.com/nodegit/nodegit/pull/957/files#diff-28618c5cbab5c17f45ffad773d9ad5486ff9c7b8b31c916d53616c98c751daa1
https://github.com/nodegit/nodegit/pull/957/files#diff-28618c5cbab5c17f45ffad773d9ad5486ff9c7b8b31c916d53616c98c751daa1
generate/templates/templates/class_header.hhttps://github.com/nodegit/nodegit/pull/957/files#diff-25ee49e4f3bdf45b52b23f17fb4fed35cd78702ba9e670d4f51cdfee3ae4296a
View file https://github.com/srajko/nodegit/blob/fb1bd51fbc81ced2e1bb4285456f245b59eccd8c/generate/templates/templates/class_header.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodegit/nodegit/pull/957/{{ revealButtonHref }}
https://github.com/nodegit/nodegit/pull/957/files#diff-25ee49e4f3bdf45b52b23f17fb4fed35cd78702ba9e670d4f51cdfee3ae4296a
https://github.com/nodegit/nodegit/pull/957/files#diff-25ee49e4f3bdf45b52b23f17fb4fed35cd78702ba9e670d4f51cdfee3ae4296a
generate/templates/templates/struct_content.cchttps://github.com/nodegit/nodegit/pull/957/files#diff-242813fbf3504e90c186d8cd2636a37035a714fdef02498b6774d61b6a256978
View file https://github.com/srajko/nodegit/blob/fb1bd51fbc81ced2e1bb4285456f245b59eccd8c/generate/templates/templates/struct_content.cc
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodegit/nodegit/pull/957/{{ revealButtonHref }}
https://github.com/nodegit/nodegit/pull/957/files#diff-242813fbf3504e90c186d8cd2636a37035a714fdef02498b6774d61b6a256978
johnhaley81https://github.com/johnhaley81
Mar 18, 2016https://github.com/nodegit/nodegit/pull/957/files#r56714302
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/nodegit/nodegit/pull/957/files
https://github.com/nodegit/nodegit/pull/957/files#diff-242813fbf3504e90c186d8cd2636a37035a714fdef02498b6774d61b6a256978
https://github.com/nodegit/nodegit/pull/957/files#diff-242813fbf3504e90c186d8cd2636a37035a714fdef02498b6774d61b6a256978
https://github.com/nodegit/nodegit/pull/957/files#diff-242813fbf3504e90c186d8cd2636a37035a714fdef02498b6774d61b6a256978
generate/templates/templates/struct_header.hhttps://github.com/nodegit/nodegit/pull/957/files#diff-46b0fc4d3930421a977f56345238c15ad1e71654d1a831d9a011f8ca1784181d
View file https://github.com/srajko/nodegit/blob/fb1bd51fbc81ced2e1bb4285456f245b59eccd8c/generate/templates/templates/struct_header.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodegit/nodegit/pull/957/{{ revealButtonHref }}
https://github.com/nodegit/nodegit/pull/957/files#diff-46b0fc4d3930421a977f56345238c15ad1e71654d1a831d9a011f8ca1784181d
https://github.com/nodegit/nodegit/pull/957/files#diff-46b0fc4d3930421a977f56345238c15ad1e71654d1a831d9a011f8ca1784181d
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.