Title: Fix return type for Reference.isHead (typed as boolean, but returns a number) by dsabanin · Pull Request #1498 · nodegit/nodegit · GitHub
Open Graph Title: Fix return type for Reference.isHead (typed as boolean, but returns a number) by dsabanin · Pull Request #1498 · nodegit/nodegit
X Title: Fix return type for Reference.isHead (typed as boolean, but returns a number) by dsabanin · Pull Request #1498 · nodegit/nodegit
Description: Both API docs and TypeScript typings say that Reference.isHead returns boolean, while in fact it's just a wrapper around Branch.isHead that returns 0 for false, 1 for true. This change makes the code do what published API already says it does. Branch.isHead is correctly typed in API as returning number.
Open Graph Description: Both API docs and TypeScript typings say that Reference.isHead returns boolean, while in fact it's just a wrapper around Branch.isHead that returns 0 for false, 1 for true. This change makes th...
X Description: Both API docs and TypeScript typings say that Reference.isHead returns boolean, while in fact it's just a wrapper around Branch.isHead that returns 0 for false, 1 for true. This change make...
Opengraph URL: https://github.com/nodegit/nodegit/pull/1498
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:e7d4b54c-cd9c-64cb-a452-644408de9c89 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8E60:3A664F:16EADC4:1E5B956:6971954D |
| html-safe-nonce | 8059afdfac9f648c977a2b13b628b117b3500ea9ad19acb7be9f1a5c06475513 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RTYwOjNBNjY0RjoxNkVBREM0OjFFNUI5NTY6Njk3MTk1NEQiLCJ2aXNpdG9yX2lkIjoiMTE2MzM3MzI0NDg2NjIwNTAwNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8f3fa65c30d6c14ddbcba2440ad67b7410d0619c92e996eb3cd56effc15af90c |
| hovercard-subject-tag | pull_request:188813032 |
| 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/1498/files |
| twitter:image | https://avatars.githubusercontent.com/u/8316?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/8316?s=400&v=4 |
| og:image:alt | Both API docs and TypeScript typings say that Reference.isHead returns boolean, while in fact it's just a wrapper around Branch.isHead that returns 0 for false, 1 for true. This change makes th... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | fdfdce9cd4f6ab85dca2b0d11264270829297c962dd5a79df449062d7822258f |
| 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 | 51c736e60b302bd039c9d5164573d176ceb24bb2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width