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: github.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:8239afdd-9681-f293-5b78-4d99179eebfc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C1E8:2E01FA:284448:375F4D:69720FD1 |
| html-safe-nonce | d75ba829b5a53b00d1d87163a40f821630adc6efbd9fcec7905a305af3424be6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMUU4OjJFMDFGQToyODQ0NDg6Mzc1RjREOjY5NzIwRkQxIiwidmlzaXRvcl9pZCI6IjYyMTE2ODQ1OTA2MzI5NjQwNDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f6f0b8e5ab0443f2ba1750b14bc7d941e4d57da955dadd9b39c1fcb0a5d24346 |
| 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 | 453de246939b1e04d711e109432e2df10933270413df93b7a8f8f1df8dda7f18 |
| 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 | 12756e5bdb9000be815bbf20a1acc7935638e596 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width