Title: Listing available branches · Issue #42 · nodegit/nodegit.github.com · GitHub
Open Graph Title: Listing available branches · Issue #42 · nodegit/nodegit.github.com
X Title: Listing available branches · Issue #42 · nodegit/nodegit.github.com
Description: I thought this would be simple but I just can't figure how to get a list of available branches. Ive tried: nodegit.Repository.open(thisHook.context.vars.req.cookies.gitRepo).then(function (repo) { nodegit.Branch.iteratorNew(repo, nodegit...
Open Graph Description: I thought this would be simple but I just can't figure how to get a list of available branches. Ive tried: nodegit.Repository.open(thisHook.context.vars.req.cookies.gitRepo).then(function (repo) { ...
X Description: I thought this would be simple but I just can't figure how to get a list of available branches. Ive tried: nodegit.Repository.open(thisHook.context.vars.req.cookies.gitRepo).then(function (repo...
Opengraph URL: https://github.com/nodegit/nodegit.github.com/issues/42
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Listing available branches","articleBody":"I thought this would be simple but I just can't figure how to get a list of available branches.\n\nIve tried:\n\n```\nnodegit.Repository.open(thisHook.context.vars.req.cookies.gitRepo).then(function (repo) {\n\n nodegit.Branch.iteratorNew(repo, nodegit.Branch.BRANCH.ALL).then(function(branchIterator) {\n\n // What to do here?\n // tried branchIterator.forEach(function(item) {});\n // tried Object.keys(branchIterator)\n\n });\n\n })\n .catch(function (err) {\n console.log(err);\n }).done(function () {\n console.log('Finished');\n });\n```\n\nWhat is branchiterator and how do you use it? I noticed in a different issue that the docs for this are still missing (https://github.com/nodegit/nodegit.github.com/issues/24). \n\nCould someone please provide a little info on how to list branches?\n\nThanks, Adam\n","author":{"url":"https://github.com/adam-clarey","@type":"Person","name":"adam-clarey"},"datePublished":"2016-04-30T09:00:39.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/42/nodegit.github.com/issues/42"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8eccba94-1c91-263b-ce87-10e223530885 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 88D8:74018:B816E5:F20669:697170FC |
| html-safe-nonce | dc24775a1a52805cd43e6a393c4f9bb1dc74cb64fd15863e8d918b60f5b72208 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OEQ4Ojc0MDE4OkI4MTZFNTpGMjA2Njk6Njk3MTcwRkMiLCJ2aXNpdG9yX2lkIjoiNTA0NDM0MzA1ODc4ODc4NjgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 460b7e6e919b68a7705833d21dd15a39f9610e884b3cd4aa43e009fd86bff8cc |
| hovercard-subject-tag | issue:152019017 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/nodegit/nodegit.github.com/42/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0d925a2c985ad09efa4645e0a49776f3f67e87222315fbf937dcb1f33b00edcd/nodegit/nodegit.github.com/issues/42 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0d925a2c985ad09efa4645e0a49776f3f67e87222315fbf937dcb1f33b00edcd/nodegit/nodegit.github.com/issues/42 |
| og:image:alt | I thought this would be simple but I just can't figure how to get a list of available branches. Ive tried: nodegit.Repository.open(thisHook.context.vars.req.cookies.gitRepo).then(function (repo) { ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | adam-clarey |
| hostname | github.com |
| expected-hostname | github.com |
| None | 353479110ec1e87d687013548f216c852055ec907d09d2fb6a180cb5ed9d28e1 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodegit/nodegit.github.com git https://github.com/nodegit/nodegit.github.com.git |
| octolytics-dimension-user_id | 657068 |
| octolytics-dimension-user_login | nodegit |
| octolytics-dimension-repository_id | 1462352 |
| octolytics-dimension-repository_nwo | nodegit/nodegit.github.com |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1462352 |
| octolytics-dimension-repository_network_root_nwo | nodegit/nodegit.github.com |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | a4c7e274c03a115b82dcef6c47ce3f7f903e88e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width