Title: Output warning in JSON generator if an unmatched argument is found in descriptor.json by rcjsuen · Pull Request #1467 · nodegit/nodegit · GitHub
Open Graph Title: Output warning in JSON generator if an unmatched argument is found in descriptor.json by rcjsuen · Pull Request #1467 · nodegit/nodegit
X Title: Output warning in JSON generator if an unmatched argument is found in descriptor.json by rcjsuen · Pull Request #1467 · nodegit/nodegit
Description: When making additions or changes to NodeGit to match libgit2, we have to make changes to the generate/input/descriptor.json file. If we make a typo, it goes completely undetected until your test code fails or you when you manually inspect the generated C++ code. To make this feedback loop better, we should generate a warning if an argument name used in the descriptor does not match the name in the C function. This fixes #1464 and will make everyone's lives a lot easier when adding new API to NodeGit. The following is the new output from Travis CI. [nodegit] Running pre-install script [nodegit] Configuring libssh2. [nodegit] Checking submodule status [nodegit] Initializing submodules [nodegit] Generating native code Found non-matching argument named flags in descriptor.json for C function git_index_remove_all Found non-matching argument named flags in descriptor.json for C function git_index_update_all Found non-matching argument named force in descriptor.json for C function git_index_write Found non-matching argument named signature in descriptor.json for C function git_rebase_init Found non-matching argument named signature in descriptor.json for C function git_branch_create Found non-matching argument named log_message in descriptor.json for C function git_branch_create Found non-matching argument named log_message in descriptor.json for C function git_reset Found non-matching argument named signature in descriptor.json for C function git_reset Found non-matching argument named return in descriptor.json for C function git_status_file [nodegit] Running install script
Open Graph Description: When making additions or changes to NodeGit to match libgit2, we have to make changes to the generate/input/descriptor.json file. If we make a typo, it goes completely undetected until your test co...
X Description: When making additions or changes to NodeGit to match libgit2, we have to make changes to the generate/input/descriptor.json file. If we make a typo, it goes completely undetected until your test co...
Opengraph URL: https://github.com/nodegit/nodegit/pull/1467
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:945d172c-aada-3699-ee28-fc0139a76baa |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D150:26F3A1:24F8D79:33FD1CE:6970F5D2 |
| html-safe-nonce | fb4dfa28af9c31deef8a3793aad2ae3419c1c9465db3596e564a6faba8c9c9d8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMTUwOjI2RjNBMToyNEY4RDc5OjMzRkQxQ0U6Njk3MEY1RDIiLCJ2aXNpdG9yX2lkIjoiMTk3NjA3MjcyNDc1NjM2MjcwNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c5a2081356843ac06f87d179db655843dc029e3c54a41145508657e476e7e07c |
| hovercard-subject-tag | pull_request:176342769 |
| 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 | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/nodegit/nodegit/pull/1467/files |
| twitter:image | https://avatars.githubusercontent.com/u/15629116?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/15629116?s=400&v=4 |
| og:image:alt | When making additions or changes to NodeGit to match libgit2, we have to make changes to the generate/input/descriptor.json file. If we make a typo, it goes completely undetected until your test co... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1b239ebed690c3053869ff31a3b7597834c25673659d63e7b6fd6a9b5d7853de |
| 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 |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | aeacfd55297f3de5395c83f200ac35d1f474115e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width