| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:00e329f8-4bb1-6033-1ef1-a81f0bbc7317 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | DD08:2E83F4:87E2D9F:B927A6B:6A5E85F6 |
| html-safe-nonce | 477411122d3fc0a871b222f307e333eb9c91fdfb03ea459d12462ff1cb9fa5ec |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERDA4OjJFODNGNDo4N0UyRDlGOkI5MjdBNkI6NkE1RTg1RjYiLCJ2aXNpdG9yX2lkIjoiMzc0MzU3NjQwNzAyNjg2MTU1OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | cd1cdbdabb0e81427d8aa31b4c56e295a994d81536b078d8d53a33c7ce0fd6f5 |
| hovercard-subject-tag | pull_request:223442714 |
| 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 | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/nodegit/nodegit/pull/1570/files |
| twitter:image | https://avatars.githubusercontent.com/u/5742591?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/5742591?s=400&v=4 |
| og:image:alt | Garbage Collection in LibGit2
So this is as much as I could glean.
Memory models
Reference counted
Most objects that exist in the repository ODB or that extend from object are cached and reference ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | e0c30ec4bc4cc128be7eee7ef869507723a2ac9916267b7e0d370b3580a5e7ba |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/nodegit/nodegit git https://github.com/nodegit/nodegit.git |
| octolytics-dimension-user_id | 657068 |
| octolytics-dimension-user_login | nodegit |
| octolytics-dimension-repository_id | 1383170 |
| octolytics-dimension-repository_nwo | nodegit/nodegit |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1383170 |
| octolytics-dimension-repository_network_root_nwo | nodegit/nodegit |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 68ef39d284f7f48d37e751bc9bc0a9a4166228d5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/nodegit/nodegit/pull/1570/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodegit%2Fnodegit%2Fpull%2F1570%2Ffiles |
| 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://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodegit%2Fnodegit%2Fpull%2F1570%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 |
| Reload | https://github.com/nodegit/nodegit/pull/1570/files |
| Reload | https://github.com/nodegit/nodegit/pull/1570/files |
| Reload | https://github.com/nodegit/nodegit/pull/1570/files |
| Please reload this page | https://github.com/nodegit/nodegit/pull/1570/files |
|
nodegit
| https://github.com/nodegit |
| nodegit | https://github.com/nodegit/nodegit |
|
Notifications
| https://github.com/login?return_to=%2Fnodegit%2Fnodegit |
|
Fork
698
| 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
20
| https://github.com/nodegit/nodegit/pulls |
|
Actions
| https://github.com/nodegit/nodegit/actions |
|
Projects
| https://github.com/nodegit/nodegit/projects |
|
Security and quality
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 and quality
| 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 service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fnodegit%2Fnodegit%2Fissues%2Fnew%2Fchoose |
| implausible | https://github.com/implausible |
| nodegit:master | https://github.com/nodegit/nodegit/tree/master |
| implausible:garbage-collection/free-almost-everything | https://github.com/implausible/nodegit/tree/garbage-collection/free-almost-everything |
|
Conversation
12
| https://github.com/nodegit/nodegit/pull/1570 |
|
Commits
13
| https://github.com/nodegit/nodegit/pull/1570/commits |
|
Checks
0
| https://github.com/nodegit/nodegit/pull/1570/checks |
|
Files changed
| https://github.com/nodegit/nodegit/pull/1570/files |
| Please reload this page | https://github.com/nodegit/nodegit/pull/1570/files |
|
Garbage collection: Free mostly everything automatically
| https://github.com/nodegit/nodegit/pull/1570/files#top |
|
Show all changes
13 commits
| https://github.com/nodegit/nodegit/pull/1570/files |
|
1be9c37
Clean up spacing in templates
implausible Oct 12, 2018
| https://github.com/nodegit/nodegit/pull/1570/commits/1be9c3795e928ca193f047c2023ce910fe2f61e5 |
|
6419faf
Enable setting arbitrary parameters as memory owner
implausible Oct 12, 2018
| https://github.com/nodegit/nodegit/pull/1570/commits/6419fafa27d1128c64622f06cb50d370e0ca14cf |
|
0135189
Update descriptor to handle more auto-gc behavior
implausible Oct 17, 2018
| https://github.com/nodegit/nodegit/pull/1570/commits/013518971bbc50f2471b2fedf9227afaf365006e |
|
2e5451f
Add additional GC behavior that reflects new descriptor format
implausible Oct 17, 2018
| https://github.com/nodegit/nodegit/pull/1570/commits/2e5451fcd0489f7d92ca8f5c74813e86569fd58b |
|
a2388e3
git_filter_list has a complex owner scenario and requires adjustments
implausible Oct 17, 2018
| https://github.com/nodegit/nodegit/pull/1570/commits/a2388e3ce4e990dd76229845323c7f5b5344187d |
|
8c5d58b
Move this inherited clone behavior into C++ land
implausible Oct 17, 2018
| https://github.com/nodegit/nodegit/pull/1570/commits/8c5d58b3dea40ba0baf82616beeb355e60829c76 |
|
335cc01
Fix tests
implausible Oct 17, 2018
| https://github.com/nodegit/nodegit/pull/1570/commits/335cc016930db51c8603da3e0605d36be132301c |
|
340e245
Fix Node 6 builds on Mac OS not having `unordered_map` defined
emmax86 Oct 17, 2018
| https://github.com/nodegit/nodegit/pull/1570/commits/340e245045082288622f8013358f196849bb888c |
|
d685897
Improve ownership model
implausible Oct 19, 2018
| https://github.com/nodegit/nodegit/pull/1570/commits/d6858971b5c227f3c7c23a707f42079dab869808 |
|
1e1b639
Ownership updates to descriptor and supplement
implausible Oct 19, 2018
| https://github.com/nodegit/nodegit/pull/1570/commits/1e1b6394177671e6cfa643a558ba17235688a5c6 |
|
1f8fd84
assign owner to wrappers
implausible Oct 19, 2018
| https://github.com/nodegit/nodegit/pull/1570/commits/1f8fd84bfaafb92acd470f309e8a1d48012b0eb9 |
|
ec91f71
Enable dup for any class with an ownerFn
implausible Oct 19, 2018
| https://github.com/nodegit/nodegit/pull/1570/commits/ec91f71b396d5918b72486dd27e45ea7ec228e2f |
|
a838ce8
Extraneous test
implausible Oct 25, 2018
| https://github.com/nodegit/nodegit/pull/1570/commits/a838ce8d88a82329ef3376149921e025d36d16d8 |
|
Clear filters
| https://github.com/nodegit/nodegit/pull/1570/files |
| Please reload this page | https://github.com/nodegit/nodegit/pull/1570/files |
| Please reload this page | https://github.com/nodegit/nodegit/pull/1570/files |
|
descriptor.json
| https://github.com/nodegit/nodegit/pull/1570/files#diff-ff00cd010b7df4b1f1cd901205bce54d2c39c0752d2ab09b09bbe4a2ead48bf2 |
|
libgit2-supplement.json
| https://github.com/nodegit/nodegit/pull/1570/files#diff-0da734fe4be22b8604123d9d8791bc1b0a32d7dc724fcaab72aaae27c57853d2 |
|
fields_info.js
| https://github.com/nodegit/nodegit/pull/1570/files#diff-999aff66eaaf90cf0c3df2203c39145b98655611642e207b3df417ade2adfa45 |
|
returns_info.js
| https://github.com/nodegit/nodegit/pull/1570/files#diff-86973a70b38999886dc90266cdd76be008acb750b8ab3804470edf73a640ad3e |
|
clone.cc
| https://github.com/nodegit/nodegit/pull/1570/files#diff-854536b4f706abc0168f78793c927000be50034ae5215d036b9edad5c1c11ea5 |
|
load.cc
| https://github.com/nodegit/nodegit/pull/1570/files#diff-8012e3986418309eaa45d0ec6c0788530b56f7a26e1bce084cba2b09466e1b97 |
|
nodegit_wrapper.h
| https://github.com/nodegit/nodegit/pull/1570/files#diff-dfb0c9a835318c24af3d01b8c2e0ed03fd59f29c8f8b354a9f4626cea9793a2f |
|
reference_counter.h
| https://github.com/nodegit/nodegit/pull/1570/files#diff-452dab6f24539b370fba9badce7933a4e9f6513da00e13532bc3760eed3ce5f7 |
|
nodegit_wrapper.cc
| https://github.com/nodegit/nodegit/pull/1570/files#diff-5364109092d34ad251a0b954c5784d0f41c0b73ba2b854c45f2e74511eb55968 |
|
reference_counter.cc
| https://github.com/nodegit/nodegit/pull/1570/files#diff-144c409297dd1b6f35c5deccb2be55bd48cb28931a68ef172ce67e5a1c7ab5ad |
|
async_function.cc
| https://github.com/nodegit/nodegit/pull/1570/files#diff-75aa5e6f48aaf84e3ba76da9670589713cd82043e55a5509e7c197742e5032ca |
|
convert_to_v8.cc
| https://github.com/nodegit/nodegit/pull/1570/files#diff-844fb3431ed2a525508be43f537de510b570829d8f15227f514ca2be47518797 |
|
sync_function.cc
| https://github.com/nodegit/nodegit/pull/1570/files#diff-7e46711f90e3a938b09d4bcdae2249b1b8811f3511280569536d86aa8ee250c6 |
|
traits.h
| https://github.com/nodegit/nodegit/pull/1570/files#diff-66aacff7877810fbb16dc1ca6e19d51b9824f699d78ff787e065c1cbb90e16f3 |
|
binding.gyp
| https://github.com/nodegit/nodegit/pull/1570/files#diff-e4864b3e985981d1b9cc4dbd855f8eab136659d24d7996a19acf61e8b38e1aa6 |
|
class_header.h
| https://github.com/nodegit/nodegit/pull/1570/files#diff-25ee49e4f3bdf45b52b23f17fb4fed35cd78702ba9e670d4f51cdfee3ae4296a |
|
struct_header.h
| https://github.com/nodegit/nodegit/pull/1570/files#diff-46b0fc4d3930421a977f56345238c15ad1e71654d1a831d9a011f8ca1784181d |
|
clone.js
| https://github.com/nodegit/nodegit/pull/1570/files#diff-c269a448a4993c928b0f6d11a98b67c0a397437daa7cddbce7615b7851a34e53 |
|
repository.js
| https://github.com/nodegit/nodegit/pull/1570/files#diff-a5a24674185f8dddf909d0208f70be34ba44b2a6070948169ac766671a185ddc |
|
annotated_commit.js
| https://github.com/nodegit/nodegit/pull/1570/files#diff-f07865a0e0d43b5c21027126534382a51fd97e816e0d0a63b0665e62c5c2bd70 |
|
filter.js
| https://github.com/nodegit/nodegit/pull/1570/files#diff-507c9f40a0ab60c73be97ab4793a9f5c4a44895cd6303785045381b90790f9eb |
|
patch.js
| https://github.com/nodegit/nodegit/pull/1570/files#diff-27f9c6849d61624957f9815993165da66283c353152f9fdfe8c925770474847f |
| generate/input/descriptor.json | https://github.com/nodegit/nodegit/pull/1570/files#diff-ff00cd010b7df4b1f1cd901205bce54d2c39c0752d2ab09b09bbe4a2ead48bf2 |
|
View file
| https://github.com/implausible/nodegit/blob/a838ce8d88a82329ef3376149921e025d36d16d8/generate/input/descriptor.json |
|
Open in desktop
| https://desktop.github.com |
| Please reload this page | https://github.com/nodegit/nodegit/pull/1570/files |
| generate/input/libgit2-supplement.json | https://github.com/nodegit/nodegit/pull/1570/files#diff-0da734fe4be22b8604123d9d8791bc1b0a32d7dc724fcaab72aaae27c57853d2 |
|
View file
| https://github.com/implausible/nodegit/blob/a838ce8d88a82329ef3376149921e025d36d16d8/generate/input/libgit2-supplement.json |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/nodegit/nodegit/pull/1570/{{ revealButtonHref }} |
|
| https://github.com/nodegit/nodegit/pull/1570/files#diff-0da734fe4be22b8604123d9d8791bc1b0a32d7dc724fcaab72aaae27c57853d2 |
|
| https://github.com/nodegit/nodegit/pull/1570/files#diff-0da734fe4be22b8604123d9d8791bc1b0a32d7dc724fcaab72aaae27c57853d2 |
|
| https://github.com/nodegit/nodegit/pull/1570/files#diff-0da734fe4be22b8604123d9d8791bc1b0a32d7dc724fcaab72aaae27c57853d2 |
|
| https://github.com/nodegit/nodegit/pull/1570/files#diff-0da734fe4be22b8604123d9d8791bc1b0a32d7dc724fcaab72aaae27c57853d2 |
|
| https://github.com/nodegit/nodegit/pull/1570/files#diff-0da734fe4be22b8604123d9d8791bc1b0a32d7dc724fcaab72aaae27c57853d2 |
|
| https://github.com/nodegit/nodegit/pull/1570/files#diff-0da734fe4be22b8604123d9d8791bc1b0a32d7dc724fcaab72aaae27c57853d2 |
|
| https://github.com/nodegit/nodegit/pull/1570/files#diff-0da734fe4be22b8604123d9d8791bc1b0a32d7dc724fcaab72aaae27c57853d2 |
|
| https://github.com/nodegit/nodegit/pull/1570/files#diff-0da734fe4be22b8604123d9d8791bc1b0a32d7dc724fcaab72aaae27c57853d2 |
|
| https://github.com/nodegit/nodegit/pull/1570/files#diff-0da734fe4be22b8604123d9d8791bc1b0a32d7dc724fcaab72aaae27c57853d2 |
|
| https://github.com/nodegit/nodegit/pull/1570/files#diff-0da734fe4be22b8604123d9d8791bc1b0a32d7dc724fcaab72aaae27c57853d2 |
|
| https://github.com/nodegit/nodegit/pull/1570/files#diff-0da734fe4be22b8604123d9d8791bc1b0a32d7dc724fcaab72aaae27c57853d2 |
|
| https://github.com/nodegit/nodegit/pull/1570/files#diff-0da734fe4be22b8604123d9d8791bc1b0a32d7dc724fcaab72aaae27c57853d2 |
|
| https://github.com/nodegit/nodegit/pull/1570/files#diff-0da734fe4be22b8604123d9d8791bc1b0a32d7dc724fcaab72aaae27c57853d2 |
|
| https://github.com/nodegit/nodegit/pull/1570/files#diff-0da734fe4be22b8604123d9d8791bc1b0a32d7dc724fcaab72aaae27c57853d2 |
| generate/templates/filters/fields_info.js | https://github.com/nodegit/nodegit/pull/1570/files#diff-999aff66eaaf90cf0c3df2203c39145b98655611642e207b3df417ade2adfa45 |
|
View file
| https://github.com/implausible/nodegit/blob/a838ce8d88a82329ef3376149921e025d36d16d8/generate/templates/filters/fields_info.js |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/nodegit/nodegit/pull/1570/{{ revealButtonHref }} |
|
| https://github.com/nodegit/nodegit/pull/1570/files#diff-999aff66eaaf90cf0c3df2203c39145b98655611642e207b3df417ade2adfa45 |
|
| https://github.com/nodegit/nodegit/pull/1570/files#diff-999aff66eaaf90cf0c3df2203c39145b98655611642e207b3df417ade2adfa45 |
| generate/templates/filters/returns_info.js | https://github.com/nodegit/nodegit/pull/1570/files#diff-86973a70b38999886dc90266cdd76be008acb750b8ab3804470edf73a640ad3e |
|
View file
| https://github.com/implausible/nodegit/blob/a838ce8d88a82329ef3376149921e025d36d16d8/generate/templates/filters/returns_info.js |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/nodegit/nodegit/pull/1570/{{ revealButtonHref }} |
|
| https://github.com/nodegit/nodegit/pull/1570/files#diff-86973a70b38999886dc90266cdd76be008acb750b8ab3804470edf73a640ad3e |
|
| https://github.com/nodegit/nodegit/pull/1570/files#diff-86973a70b38999886dc90266cdd76be008acb750b8ab3804470edf73a640ad3e |
|
| https://github.com/nodegit/nodegit/pull/1570/files#diff-86973a70b38999886dc90266cdd76be008acb750b8ab3804470edf73a640ad3e |
|
| https://github.com/nodegit/nodegit/pull/1570/files#diff-86973a70b38999886dc90266cdd76be008acb750b8ab3804470edf73a640ad3e |
| Please reload this page | https://github.com/nodegit/nodegit/pull/1570/files |
|
| 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 |