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:85761740-2ac5-5ed1-d556-66e9485426a0 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B9F8:116E4B:802DB60:ACB5CFD:6A5E37E7 |
| html-safe-nonce | 0fcf5c340acdd045f24d220f185c14c0b140be28d24b9d1a319b308783b8391b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOUY4OjExNkU0Qjo4MDJEQjYwOkFDQjVDRkQ6NkE1RTM3RTciLCJ2aXNpdG9yX2lkIjoiNTMxNjYzNjg1MjM4ODUwOTY3MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | dca62e5df8616e5444cbdcadbb062bcc3c7148be30ae8179af86fb499793633f |
| 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 | e4b946991e2bd4b122ac7bb3d405be22af15feed82daaafcd1fe0a1231d54061 |
| 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 | a421a3a9fbeebe1ed5ba7c8e5b803b098d65a30e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width