Title: Better cloning with NodeGit by tbranyen · Pull Request #453 · nodegit/nodegit · GitHub
Open Graph Title: Better cloning with NodeGit by tbranyen · Pull Request #453 · nodegit/nodegit
X Title: Better cloning with NodeGit by tbranyen · Pull Request #453 · nodegit/nodegit
Description: Right now we have the current call mechanism for clone: var Git = require('nodegit'); Git.Clone.clone('https://github.com/nodegit/nodegit', 'nodegit').then(function(repo) { /* work with the repository */ }); This is pretty verbose, compared to: var Git = require('nodegit'); Git.Clone('https://github.com/nodegit/nodegit', 'nodegit').then(function(repo) { /* work with the repository */ }); So I've fixed that in the JS-side. The top-level NodeGit.Clone Object is now a Function that behaves like an Object. This is not a backwards-breaking change, so hopefully we're all in favor?
Open Graph Description: Right now we have the current call mechanism for clone: var Git = require('nodegit'); Git.Clone.clone('https://github.com/nodegit/nodegit', 'nodegit').then(function(repo) {...
X Description: Right now we have the current call mechanism for clone: var Git = require('nodegit'); Git.Clone.clone('https://github.com/nodegit/nodegit', 'nodegit'...
Opengraph URL: https://github.com/nodegit/nodegit/pull/453
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:1c626fb2-8b46-6849-fa82-c8574b05b93f |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C842:38DB05:1AF7430:25FA6E6:6A5FB47D |
| html-safe-nonce | 5b0baf202402b3d808393d15db050fea69c58e5f7ad309253ee8780f8e5c8ac1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODQyOjM4REIwNToxQUY3NDMwOjI1RkE2RTY6NkE1RkI0N0QiLCJ2aXNpdG9yX2lkIjoiNzE5MTI0NjQ2MTk3NjE2MzQ1MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | fc0bf1783f4dd5f316036c43eddaecd6b11872fb51fb1081500fe3ff4a573172 |
| hovercard-subject-tag | pull_request:30321932 |
| 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/453/files |
| twitter:image | https://avatars.githubusercontent.com/u/181635?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/181635?s=400&v=4 |
| og:image:alt | Right now we have the current call mechanism for clone: var Git = require('nodegit'); Git.Clone.clone('https://github.com/nodegit/nodegit', 'nodegit').then(function(repo) {... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1ec7085bd7214c509393537f93bc21c48856549e31538b70bdb3cc4df7eb5f70 |
| 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 | b0ff0ab699186747983f122c82d4ebc71a1c22b4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width