René's URL Explorer Experiment


Title: Fixed most of commands creating a git repo instead of throwing an error by JohanMabille · Pull Request #42 · QuantStack/git2cpp · GitHub

Open Graph Title: Fixed most of commands creating a git repo instead of throwing an error by JohanMabille · Pull Request #42 · QuantStack/git2cpp

X Title: Fixed most of commands creating a git repo instead of throwing an error by JohanMabille · Pull Request #42 · QuantStack/git2cpp

Description: Currently, most of the commands create a .git folder instead of throwing an exception when we execute them in a non-git folder, like git does.

Open Graph Description: Currently, most of the commands create a .git folder instead of throwing an exception when we execute them in a non-git folder, like git does.

X Description: Currently, most of the commands create a .git folder instead of throwing an exception when we execute them in a non-git folder, like git does.

Opengraph URL: https://github.com/QuantStack/git2cpp/pull/42

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:9952d9ff-874f-34e7-db7f-161eeb6cf706
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE4C8:3F9235:181A659:1F92621:697197A1
html-safe-noncee12603b364a0bf37f8c7de7b96b6d62d6fa5a500874edf87f86d63cae0982910
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNEM4OjNGOTIzNToxODFBNjU5OjFGOTI2MjE6Njk3MTk3QTEiLCJ2aXNpdG9yX2lkIjoiMjg3NDY5NzE5NTgxNjMyNzA3MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac6d0859a9bfe94075e27f2c5e9ed15b57fc59ef510cb52a13afa8ad6ea6a736e3
hovercard-subject-tagpull_request:2799624818
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/QuantStack/git2cpp/pull/42/files
twitter:imagehttps://avatars.githubusercontent.com/u/6754742?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/6754742?s=400&v=4
og:image:altCurrently, most of the commands create a .git folder instead of throwing an exception when we execute them in a non-git folder, like git does.
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonefdfdce9cd4f6ab85dca2b0d11264270829297c962dd5a79df449062d7822258f
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/QuantStack/git2cpp git https://github.com/QuantStack/git2cpp.git
octolytics-dimension-user_id19627246
octolytics-dimension-user_loginQuantStack
octolytics-dimension-repository_id988433538
octolytics-dimension-repository_nwoQuantStack/git2cpp
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id988433538
octolytics-dimension-repository_network_root_nwoQuantStack/git2cpp
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
release51c736e60b302bd039c9d5164573d176ceb24bb2
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/QuantStack/git2cpp/pull/42/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FQuantStack%2Fgit2cpp%2Fpull%2F42%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
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
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
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/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%2FQuantStack%2Fgit2cpp%2Fpull%2F42%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=QuantStack%2Fgit2cpp
Reloadhttps://github.com/QuantStack/git2cpp/pull/42/files
Reloadhttps://github.com/QuantStack/git2cpp/pull/42/files
Reloadhttps://github.com/QuantStack/git2cpp/pull/42/files
QuantStack https://github.com/QuantStack
git2cpphttps://github.com/QuantStack/git2cpp
Notifications https://github.com/login?return_to=%2FQuantStack%2Fgit2cpp
Fork 5 https://github.com/login?return_to=%2FQuantStack%2Fgit2cpp
Star 2 https://github.com/login?return_to=%2FQuantStack%2Fgit2cpp
Code https://github.com/QuantStack/git2cpp
Issues 12 https://github.com/QuantStack/git2cpp/issues
Pull requests 1 https://github.com/QuantStack/git2cpp/pulls
Actions https://github.com/QuantStack/git2cpp/actions
Projects 0 https://github.com/QuantStack/git2cpp/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/QuantStack/git2cpp/security
Please reload this pagehttps://github.com/QuantStack/git2cpp/pull/42/files
Insights https://github.com/QuantStack/git2cpp/pulse
Code https://github.com/QuantStack/git2cpp
Issues https://github.com/QuantStack/git2cpp/issues
Pull requests https://github.com/QuantStack/git2cpp/pulls
Actions https://github.com/QuantStack/git2cpp/actions
Projects https://github.com/QuantStack/git2cpp/projects
Security https://github.com/QuantStack/git2cpp/security
Insights https://github.com/QuantStack/git2cpp/pulse
Sign up for GitHub https://github.com/signup?return_to=%2FQuantStack%2Fgit2cpp%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FQuantStack%2Fgit2cpp%2Fissues%2Fnew%2Fchoose
ianthomas23https://github.com/ianthomas23
QuantStack:mainhttps://github.com/QuantStack/git2cpp/tree/main
JohanMabille:repository_openhttps://github.com/JohanMabille/git2cpp/tree/repository_open
Conversation 4 https://github.com/QuantStack/git2cpp/pull/42
Commits 2 https://github.com/QuantStack/git2cpp/pull/42/commits
Checks 1 https://github.com/QuantStack/git2cpp/pull/42/checks
Files changed https://github.com/QuantStack/git2cpp/pull/42/files
Please reload this pagehttps://github.com/QuantStack/git2cpp/pull/42/files
Fixed most of commands creating a git repo instead of throwing an error https://github.com/QuantStack/git2cpp/pull/42/files#top
Show all changes 2 commits https://github.com/QuantStack/git2cpp/pull/42/files
2a9533c Fixed most of commands creating a git repo instead of throwing an error JohanMabille Sep 4, 2025 https://github.com/QuantStack/git2cpp/pull/42/commits/2a9533cb4daf4f36f40dcd2f3416d423749aa98f
5b5c7b8 Removed remaining test/data files JohanMabille Sep 5, 2025 https://github.com/QuantStack/git2cpp/pull/42/commits/5b5c7b88d81daa9e5744136305e0ef1274d07115
Clear filters https://github.com/QuantStack/git2cpp/pull/42/files
Please reload this pagehttps://github.com/QuantStack/git2cpp/pull/42/files
Please reload this pagehttps://github.com/QuantStack/git2cpp/pull/42/files
add_subcommand.cpp https://github.com/QuantStack/git2cpp/pull/42/files#diff-1ffb919d29aa972fadd07b195e2a7eab6e58741f99d7538e177ff720075951cf
commit_subcommand.cpp https://github.com/QuantStack/git2cpp/pull/42/files#diff-efffb501799f312d7c562cf733342679fab46e4ec190fa870d6108f07af03d62
log_subcommand.cpp https://github.com/QuantStack/git2cpp/pull/42/files#diff-41db8cd8b714054768ed8ae085ae7394b336e94242fa8274625aa49ccd952725
reset_subcommand.cpp https://github.com/QuantStack/git2cpp/pull/42/files#diff-041ecc00f069f40c94c9ed3d64290d1e3e1ad113b221fb7ee6c91d99417c260b
status_subcommand.cpp https://github.com/QuantStack/git2cpp/pull/42/files#diff-f3365e6d9fb6e0349f676433ef271ef43a70df07b89d5bd3b12878cbbfc7969e
test_add.py https://github.com/QuantStack/git2cpp/pull/42/files#diff-d353fa1b12f6fe61a1143799e9a06c68fe8553095ede3c136efa4bd3f084df37
test_branch.py https://github.com/QuantStack/git2cpp/pull/42/files#diff-dcffbcb52cd55f3074b3386c8894c0c63880040635d98460421493f5cd2d4446
test_log.py https://github.com/QuantStack/git2cpp/pull/42/files#diff-b8abda4d594d8a73183718f67fc4a3161cc5f50dc9ab30b8e29cc53afe55bd08
test_reset.py https://github.com/QuantStack/git2cpp/pull/42/files#diff-4450081a91e7670b65988d3efce821325497e466070563d33df7f16d7712dd4a
test_status.py https://github.com/QuantStack/git2cpp/pull/42/files#diff-aa2343071865acb09d2a7024e7612ad009f8ff88db93abcd2579b75a5c93a164
src/subcommand/add_subcommand.cpphttps://github.com/QuantStack/git2cpp/pull/42/files#diff-1ffb919d29aa972fadd07b195e2a7eab6e58741f99d7538e177ff720075951cf
View file https://github.com/JohanMabille/git2cpp/blob/5b5c7b88d81daa9e5744136305e0ef1274d07115/src/subcommand/add_subcommand.cpp
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/QuantStack/git2cpp/pull/42/{{ revealButtonHref }}
https://github.com/QuantStack/git2cpp/pull/42/files#diff-1ffb919d29aa972fadd07b195e2a7eab6e58741f99d7538e177ff720075951cf
https://github.com/QuantStack/git2cpp/pull/42/files#diff-1ffb919d29aa972fadd07b195e2a7eab6e58741f99d7538e177ff720075951cf
src/subcommand/commit_subcommand.cpphttps://github.com/QuantStack/git2cpp/pull/42/files#diff-efffb501799f312d7c562cf733342679fab46e4ec190fa870d6108f07af03d62
View file https://github.com/JohanMabille/git2cpp/blob/5b5c7b88d81daa9e5744136305e0ef1274d07115/src/subcommand/commit_subcommand.cpp
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/QuantStack/git2cpp/pull/42/{{ revealButtonHref }}
https://github.com/QuantStack/git2cpp/pull/42/files#diff-efffb501799f312d7c562cf733342679fab46e4ec190fa870d6108f07af03d62
https://github.com/QuantStack/git2cpp/pull/42/files#diff-efffb501799f312d7c562cf733342679fab46e4ec190fa870d6108f07af03d62
src/subcommand/log_subcommand.cpphttps://github.com/QuantStack/git2cpp/pull/42/files#diff-41db8cd8b714054768ed8ae085ae7394b336e94242fa8274625aa49ccd952725
View file https://github.com/JohanMabille/git2cpp/blob/5b5c7b88d81daa9e5744136305e0ef1274d07115/src/subcommand/log_subcommand.cpp
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/QuantStack/git2cpp/pull/42/{{ revealButtonHref }}
https://github.com/QuantStack/git2cpp/pull/42/files#diff-41db8cd8b714054768ed8ae085ae7394b336e94242fa8274625aa49ccd952725
https://github.com/QuantStack/git2cpp/pull/42/files#diff-41db8cd8b714054768ed8ae085ae7394b336e94242fa8274625aa49ccd952725
src/subcommand/reset_subcommand.cpphttps://github.com/QuantStack/git2cpp/pull/42/files#diff-041ecc00f069f40c94c9ed3d64290d1e3e1ad113b221fb7ee6c91d99417c260b
View file https://github.com/JohanMabille/git2cpp/blob/5b5c7b88d81daa9e5744136305e0ef1274d07115/src/subcommand/reset_subcommand.cpp
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/QuantStack/git2cpp/pull/42/{{ revealButtonHref }}
https://github.com/QuantStack/git2cpp/pull/42/files#diff-041ecc00f069f40c94c9ed3d64290d1e3e1ad113b221fb7ee6c91d99417c260b
https://github.com/QuantStack/git2cpp/pull/42/files#diff-041ecc00f069f40c94c9ed3d64290d1e3e1ad113b221fb7ee6c91d99417c260b
src/subcommand/status_subcommand.cpphttps://github.com/QuantStack/git2cpp/pull/42/files#diff-f3365e6d9fb6e0349f676433ef271ef43a70df07b89d5bd3b12878cbbfc7969e
View file https://github.com/JohanMabille/git2cpp/blob/5b5c7b88d81daa9e5744136305e0ef1274d07115/src/subcommand/status_subcommand.cpp
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/QuantStack/git2cpp/pull/42/{{ revealButtonHref }}
https://github.com/QuantStack/git2cpp/pull/42/files#diff-f3365e6d9fb6e0349f676433ef271ef43a70df07b89d5bd3b12878cbbfc7969e
https://github.com/QuantStack/git2cpp/pull/42/files#diff-f3365e6d9fb6e0349f676433ef271ef43a70df07b89d5bd3b12878cbbfc7969e
test/test_add.pyhttps://github.com/QuantStack/git2cpp/pull/42/files#diff-d353fa1b12f6fe61a1143799e9a06c68fe8553095ede3c136efa4bd3f084df37
View file https://github.com/JohanMabille/git2cpp/blob/5b5c7b88d81daa9e5744136305e0ef1274d07115/test/test_add.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/QuantStack/git2cpp/pull/42/{{ revealButtonHref }}
https://github.com/QuantStack/git2cpp/pull/42/files#diff-d353fa1b12f6fe61a1143799e9a06c68fe8553095ede3c136efa4bd3f084df37
test/test_branch.pyhttps://github.com/QuantStack/git2cpp/pull/42/files#diff-dcffbcb52cd55f3074b3386c8894c0c63880040635d98460421493f5cd2d4446
View file https://github.com/JohanMabille/git2cpp/blob/5b5c7b88d81daa9e5744136305e0ef1274d07115/test/test_branch.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/QuantStack/git2cpp/pull/42/{{ revealButtonHref }}
https://github.com/QuantStack/git2cpp/pull/42/files#diff-dcffbcb52cd55f3074b3386c8894c0c63880040635d98460421493f5cd2d4446
test/test_log.pyhttps://github.com/QuantStack/git2cpp/pull/42/files#diff-b8abda4d594d8a73183718f67fc4a3161cc5f50dc9ab30b8e29cc53afe55bd08
View file https://github.com/JohanMabille/git2cpp/blob/5b5c7b88d81daa9e5744136305e0ef1274d07115/test/test_log.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/QuantStack/git2cpp/pull/42/{{ revealButtonHref }}
https://github.com/QuantStack/git2cpp/pull/42/files#diff-b8abda4d594d8a73183718f67fc4a3161cc5f50dc9ab30b8e29cc53afe55bd08
https://github.com/QuantStack/git2cpp/pull/42/files#diff-b8abda4d594d8a73183718f67fc4a3161cc5f50dc9ab30b8e29cc53afe55bd08
test/test_reset.pyhttps://github.com/QuantStack/git2cpp/pull/42/files#diff-4450081a91e7670b65988d3efce821325497e466070563d33df7f16d7712dd4a
View file https://github.com/JohanMabille/git2cpp/blob/5b5c7b88d81daa9e5744136305e0ef1274d07115/test/test_reset.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/QuantStack/git2cpp/pull/42/{{ revealButtonHref }}
https://github.com/QuantStack/git2cpp/pull/42/files#diff-4450081a91e7670b65988d3efce821325497e466070563d33df7f16d7712dd4a
test/test_status.pyhttps://github.com/QuantStack/git2cpp/pull/42/files#diff-aa2343071865acb09d2a7024e7612ad009f8ff88db93abcd2579b75a5c93a164
View file https://github.com/JohanMabille/git2cpp/blob/5b5c7b88d81daa9e5744136305e0ef1274d07115/test/test_status.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/QuantStack/git2cpp/pull/42/{{ revealButtonHref }}
https://github.com/QuantStack/git2cpp/pull/42/files#diff-aa2343071865acb09d2a7024e7612ad009f8ff88db93abcd2579b75a5c93a164
https://github.com/QuantStack/git2cpp/pull/42/files#diff-aa2343071865acb09d2a7024e7612ad009f8ff88db93abcd2579b75a5c93a164
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.