René's URL Explorer Experiment


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&#39...

Opengraph URL: https://github.com/nodegit/nodegit/pull/453

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:85761740-2ac5-5ed1-d556-66e9485426a0
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB9F8:116E4B:802DB60:ACB5CFD:6A5E37E7
html-safe-nonce0fcf5c340acdd045f24d220f185c14c0b140be28d24b9d1a319b308783b8391b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOUY4OjExNkU0Qjo4MDJEQjYwOkFDQjVDRkQ6NkE1RTM3RTciLCJ2aXNpdG9yX2lkIjoiNTMxNjYzNjg1MjM4ODUwOTY3MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacdca62e5df8616e5444cbdcadbb062bcc3c7148be30ae8179af86fb499793633f
hovercard-subject-tagpull_request:30321932
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/nodegit/nodegit/pull/453/files
twitter:imagehttps://avatars.githubusercontent.com/u/181635?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/181635?s=400&v=4
og:image:altRight 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_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonee4b946991e2bd4b122ac7bb3d405be22af15feed82daaafcd1fe0a1231d54061
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/nodegit/nodegit git https://github.com/nodegit/nodegit.git
octolytics-dimension-user_id657068
octolytics-dimension-user_loginnodegit
octolytics-dimension-repository_id1383170
octolytics-dimension-repository_nwonodegit/nodegit
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1383170
octolytics-dimension-repository_network_root_nwonodegit/nodegit
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasea421a3a9fbeebe1ed5ba7c8e5b803b098d65a30e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/nodegit/nodegit/pull/453/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodegit%2Fnodegit%2Fpull%2F453%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodegit%2Fnodegit%2Fpull%2F453%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=nodegit%2Fnodegit
Reloadhttps://github.com/nodegit/nodegit/pull/453/files
Reloadhttps://github.com/nodegit/nodegit/pull/453/files
Reloadhttps://github.com/nodegit/nodegit/pull/453/files
Please reload this pagehttps://github.com/nodegit/nodegit/pull/453/files
nodegit https://github.com/nodegit
nodegithttps://github.com/nodegit/nodegit
Notifications https://github.com/login?return_to=%2Fnodegit%2Fnodegit
Fork 698 https://github.com/login?return_to=%2Fnodegit%2Fnodegit
Star 5.8k https://github.com/login?return_to=%2Fnodegit%2Fnodegit
Code https://github.com/nodegit/nodegit
Issues 343 https://github.com/nodegit/nodegit/issues
Pull requests 20 https://github.com/nodegit/nodegit/pulls
Actions https://github.com/nodegit/nodegit/actions
Projects https://github.com/nodegit/nodegit/projects
Security and quality 0 https://github.com/nodegit/nodegit/security
Insights https://github.com/nodegit/nodegit/pulse
Code https://github.com/nodegit/nodegit
Issues https://github.com/nodegit/nodegit/issues
Pull requests https://github.com/nodegit/nodegit/pulls
Actions https://github.com/nodegit/nodegit/actions
Projects https://github.com/nodegit/nodegit/projects
Security and quality https://github.com/nodegit/nodegit/security
Insights https://github.com/nodegit/nodegit/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fnodegit%2Fnodegit%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fnodegit%2Fnodegit%2Fissues%2Fnew%2Fchoose
tbranyenhttps://github.com/tbranyen
masterhttps://github.com/nodegit/nodegit/tree/master
better-clonehttps://github.com/nodegit/nodegit/tree/better-clone
Conversation 3 https://github.com/nodegit/nodegit/pull/453
Commits 4 https://github.com/nodegit/nodegit/pull/453/commits
Checks 0 https://github.com/nodegit/nodegit/pull/453/checks
Files changed https://github.com/nodegit/nodegit/pull/453/files
Please reload this pagehttps://github.com/nodegit/nodegit/pull/453/files
Better cloning with NodeGit https://github.com/nodegit/nodegit/pull/453/files#top
Show all changes 4 commits https://github.com/nodegit/nodegit/pull/453/files
efb2376 Convert Clone from object to function tbranyen Mar 2, 2015 https://github.com/nodegit/nodegit/pull/453/commits/efb23767ca32361ef422b7bb8a5c2e206ae3b9be
5773320 Test showing shorter clone syntax tbranyen Mar 2, 2015 https://github.com/nodegit/nodegit/pull/453/commits/5773320aa3d7596f15ae8bb6057151cb816a6d4d
7061d68 Updated examples to show new syntax tbranyen Mar 2, 2015 https://github.com/nodegit/nodegit/pull/453/commits/7061d68484fc937202373040c4b9d8239fc6cf91
4c888f5 Remove only from describe block tbranyen Mar 2, 2015 https://github.com/nodegit/nodegit/pull/453/commits/4c888f5a017b16128a6b255561d8bb48e459a3db
Clear filters https://github.com/nodegit/nodegit/pull/453/files
Please reload this pagehttps://github.com/nodegit/nodegit/pull/453/files
Please reload this pagehttps://github.com/nodegit/nodegit/pull/453/files
clone.js https://github.com/nodegit/nodegit/pull/453/files#diff-0c1de253c16d209e16478a06ae16473c5d72d8349e4772adb98a7440e8ff4ef5
cloneFromGithubWith2Factor.js https://github.com/nodegit/nodegit/pull/453/files#diff-c0d1a69669e632bca81eab2b577d85bc5c3f827c6f74c128a2b770fb717f7a24
clone.js https://github.com/nodegit/nodegit/pull/453/files#diff-c269a448a4993c928b0f6d11a98b67c0a397437daa7cddbce7615b7851a34e53
clone.js https://github.com/nodegit/nodegit/pull/453/files#diff-86b13b487cd1d6baf7f9f73aebd1a5ec5b688291f689b3d10adb15530b1007ea
examples/clone.jshttps://github.com/nodegit/nodegit/pull/453/files#diff-0c1de253c16d209e16478a06ae16473c5d72d8349e4772adb98a7440e8ff4ef5
View file https://github.com/nodegit/nodegit/blob/4c888f5a017b16128a6b255561d8bb48e459a3db/examples/clone.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodegit/nodegit/pull/453/{{ revealButtonHref }}
https://github.com/nodegit/nodegit/pull/453/files#diff-0c1de253c16d209e16478a06ae16473c5d72d8349e4772adb98a7440e8ff4ef5
https://github.com/nodegit/nodegit/pull/453/files#diff-0c1de253c16d209e16478a06ae16473c5d72d8349e4772adb98a7440e8ff4ef5
examples/cloneFromGithubWith2Factor.jshttps://github.com/nodegit/nodegit/pull/453/files#diff-c0d1a69669e632bca81eab2b577d85bc5c3f827c6f74c128a2b770fb717f7a24
View file https://github.com/nodegit/nodegit/blob/4c888f5a017b16128a6b255561d8bb48e459a3db/examples/cloneFromGithubWith2Factor.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodegit/nodegit/pull/453/{{ revealButtonHref }}
https://github.com/nodegit/nodegit/pull/453/files#diff-c0d1a69669e632bca81eab2b577d85bc5c3f827c6f74c128a2b770fb717f7a24
https://github.com/nodegit/nodegit/pull/453/files#diff-c0d1a69669e632bca81eab2b577d85bc5c3f827c6f74c128a2b770fb717f7a24
lib/clone.jshttps://github.com/nodegit/nodegit/pull/453/files#diff-c269a448a4993c928b0f6d11a98b67c0a397437daa7cddbce7615b7851a34e53
View file https://github.com/nodegit/nodegit/blob/4c888f5a017b16128a6b255561d8bb48e459a3db/lib/clone.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodegit/nodegit/pull/453/{{ revealButtonHref }}
https://github.com/nodegit/nodegit/pull/453/files#diff-c269a448a4993c928b0f6d11a98b67c0a397437daa7cddbce7615b7851a34e53
test/tests/clone.jshttps://github.com/nodegit/nodegit/pull/453/files#diff-86b13b487cd1d6baf7f9f73aebd1a5ec5b688291f689b3d10adb15530b1007ea
View file https://github.com/nodegit/nodegit/blob/4c888f5a017b16128a6b255561d8bb48e459a3db/test/tests/clone.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodegit/nodegit/pull/453/{{ revealButtonHref }}
https://github.com/nodegit/nodegit/pull/453/files#diff-86b13b487cd1d6baf7f9f73aebd1a5ec5b688291f689b3d10adb15530b1007ea
https://github.com/nodegit/nodegit/pull/453/files#diff-86b13b487cd1d6baf7f9f73aebd1a5ec5b688291f689b3d10adb15530b1007ea
https://github.com/nodegit/nodegit/pull/453/files#diff-86b13b487cd1d6baf7f9f73aebd1a5ec5b688291f689b3d10adb15530b1007ea
https://github.com/nodegit/nodegit/pull/453/files#diff-86b13b487cd1d6baf7f9f73aebd1a5ec5b688291f689b3d10adb15530b1007ea
https://github.com/nodegit/nodegit/pull/453/files#diff-86b13b487cd1d6baf7f9f73aebd1a5ec5b688291f689b3d10adb15530b1007ea
https://github.com/nodegit/nodegit/pull/453/files#diff-86b13b487cd1d6baf7f9f73aebd1a5ec5b688291f689b3d10adb15530b1007ea
https://github.com/nodegit/nodegit/pull/453/files#diff-86b13b487cd1d6baf7f9f73aebd1a5ec5b688291f689b3d10adb15530b1007ea
https://github.com/nodegit/nodegit/pull/453/files#diff-86b13b487cd1d6baf7f9f73aebd1a5ec5b688291f689b3d10adb15530b1007ea
https://github.com/nodegit/nodegit/pull/453/files#diff-86b13b487cd1d6baf7f9f73aebd1a5ec5b688291f689b3d10adb15530b1007ea
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.