René's URL Explorer Experiment


Title: stash: partial stash specific files by gitkraken-jacobw · Pull Request #10 · nodegit/libgit2 · GitHub

Open Graph Title: stash: partial stash specific files by gitkraken-jacobw · Pull Request #10 · nodegit/libgit2

X Title: stash: partial stash specific files by gitkraken-jacobw · Pull Request #10 · nodegit/libgit2

Description: Copy-pasted from main libgit2 repo: There's this concept called partial stashing in Git where users are able to stash desired files without having to stash and also reset the entire workdir. I based my implementation on tiennou's suggestion from libgit2#4725. This introduces options to git_stash_save where developers are able to supply the paths that they want to have stashed from the workdir. I could have gone further and have exposed a git_index* option as tiennou suggested, but I chose not to at this moment. Let me know if I should expose a git_index* option so that users can supply an arbitrary index to be stashed. I also introduced GIT_STASH_KEEP_ALL, which prevents resetting the index and workdir once a stash has been completed.

Open Graph Description: Copy-pasted from main libgit2 repo: There's this concept called partial stashing in Git where users are able to stash desired files without having to stash and also reset the entire workdir. I ...

X Description: Copy-pasted from main libgit2 repo: There's this concept called partial stashing in Git where users are able to stash desired files without having to stash and also reset the entire workdir...

Opengraph URL: https://github.com/nodegit/libgit2/pull/10

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:da613491-d485-04db-239d-1f26559d1ab4
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC81E:8D035:5BAC2:80252:6A61F75F
html-safe-nonceee9e78d9c157125a1e9ca152a04454cc6970798790a69654c05b432027107d22
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODFFOjhEMDM1OjVCQUMyOjgwMjUyOjZBNjFGNzVGIiwidmlzaXRvcl9pZCI6IjY0NTQzNDc2NzQ0ODIyNDM0MjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac1e063eb50ad18602f846b1b5c50e589f9d189daac000b099ae04529c243847cf
hovercard-subject-tagpull_request:982866919
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/libgit2/pull/10/files
twitter:imagehttps://avatars.githubusercontent.com/u/106689772?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/106689772?s=400&v=4
og:image:altCopy-pasted from main libgit2 repo: There's this concept called partial stashing in Git where users are able to stash desired files without having to stash and also reset the entire workdir. I ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noned88d9dd41cd32712dc23ff01ba406271c88c4858198430c255d591be42a1166f
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/nodegit/libgit2 git https://github.com/nodegit/libgit2.git
octolytics-dimension-user_id657068
octolytics-dimension-user_loginnodegit
octolytics-dimension-repository_id30660191
octolytics-dimension-repository_nwonodegit/libgit2
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forktrue
octolytics-dimension-repository_parent_id901662
octolytics-dimension-repository_parent_nwolibgit2/libgit2
octolytics-dimension-repository_network_root_id901662
octolytics-dimension-repository_network_root_nwolibgit2/libgit2
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
releasea7f024eda6b8ce06d29c9276168423bfe05bafae
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/nodegit/libgit2/pull/10/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodegit%2Flibgit2%2Fpull%2F10%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
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
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%2Flibgit2%2Fpull%2F10%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%2Flibgit2
Reloadhttps://github.com/nodegit/libgit2/pull/10/files
Reloadhttps://github.com/nodegit/libgit2/pull/10/files
Reloadhttps://github.com/nodegit/libgit2/pull/10/files
Please reload this pagehttps://github.com/nodegit/libgit2/pull/10/files
nodegit https://github.com/nodegit
libgit2https://github.com/nodegit/libgit2
libgit2/libgit2https://github.com/libgit2/libgit2
Notifications https://github.com/login?return_to=%2Fnodegit%2Flibgit2
Fork 6 https://github.com/login?return_to=%2Fnodegit%2Flibgit2
Star 4 https://github.com/login?return_to=%2Fnodegit%2Flibgit2
Code https://github.com/nodegit/libgit2
Pull requests 0 https://github.com/nodegit/libgit2/pulls
Actions https://github.com/nodegit/libgit2/actions
Projects https://github.com/nodegit/libgit2/projects
Security and quality 0 https://github.com/nodegit/libgit2/security
Insights https://github.com/nodegit/libgit2/pulse
Code https://github.com/nodegit/libgit2
Pull requests https://github.com/nodegit/libgit2/pulls
Actions https://github.com/nodegit/libgit2/actions
Projects https://github.com/nodegit/libgit2/projects
Security and quality https://github.com/nodegit/libgit2/security
Insights https://github.com/nodegit/libgit2/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fnodegit%2Flibgit2%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fnodegit%2Flibgit2%2Fissues%2Fnew%2Fchoose
ianhattendorfhttps://github.com/ianhattendorf
nodegit:libgit-nexthttps://github.com/nodegit/libgit2/tree/libgit-next
gitkraken-jacobw:partialstashinghttps://github.com/gitkraken-jacobw/libgit2/tree/partialstashing
Conversation 14 https://github.com/nodegit/libgit2/pull/10
Commits 6 https://github.com/nodegit/libgit2/pull/10/commits
Checks 0 https://github.com/nodegit/libgit2/pull/10/checks
Files changed 4 https://github.com/nodegit/libgit2/pull/10/files
stash: partial stash specific files https://github.com/nodegit/libgit2/pull/10/files#top
Show all changes 6 commits https://github.com/nodegit/libgit2/pull/10/files
d6554d0 stash: introduce `build_stash_commit_from_index` gitkraken-jacobw Jul 14, 2022 https://github.com/nodegit/libgit2/pull/10/commits/d6554d0b84e80575b0808ecaed81bf85323ebb30
8280bb0 stash: implement partial stashing by path gitkraken-jacobw Jul 14, 2022 https://github.com/nodegit/libgit2/pull/10/commits/8280bb0ec7dec79c1e1a88202d369b2225274a59
65210e9 stash: implement CI testing gitkraken-jacobw Jun 17, 2022 https://github.com/nodegit/libgit2/pull/10/commits/65210e95ffadb5c129e3dcb295f0479827e29d74
ec67f95 stash: better option validation for stash save gitkraken-jacobw Jul 14, 2022 https://github.com/nodegit/libgit2/pull/10/commits/ec67f9503ec78c41266e0032bd8f347506743391
f2befe8 stash: add `const` to arguments gitkraken-jacobw Jul 13, 2022 https://github.com/nodegit/libgit2/pull/10/commits/f2befe82a30cc8afb961e5e855682dde115052d7
98faa3e stash: test save options init gitkraken-jacobw Jul 13, 2022 https://github.com/nodegit/libgit2/pull/10/commits/98faa3e392c3e86623842519be3b55e25eb3094d
Clear filters https://github.com/nodegit/libgit2/pull/10/files
Please reload this pagehttps://github.com/nodegit/libgit2/pull/10/files
Please reload this pagehttps://github.com/nodegit/libgit2/pull/10/files
stash.h https://github.com/nodegit/libgit2/pull/10/files#diff-72cf55b9aa572e49ac69113788ac5f938d9e39152373950242d298d9b9d7cc8a
stash.c https://github.com/nodegit/libgit2/pull/10/files#diff-0c3db84681c58ad4dc7668d31387972c91347df06ee380375de338f321b5b537
structinit.c https://github.com/nodegit/libgit2/pull/10/files#diff-58f42c18272882fe9c85c4978020de852f60cdd7489b981ec2202d8dd94ea27a
save.c https://github.com/nodegit/libgit2/pull/10/files#diff-17d17c7c610f37d6ecdbfafee12beb11ba52b69af741e66055ac06afe92f9413
include/git2/stash.hhttps://github.com/nodegit/libgit2/pull/10/files#diff-72cf55b9aa572e49ac69113788ac5f938d9e39152373950242d298d9b9d7cc8a
View file https://github.com/gitkraken-jacobw/libgit2/blob/98faa3e392c3e86623842519be3b55e25eb3094d/include/git2/stash.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodegit/libgit2/pull/10/{{ revealButtonHref }}
https://github.com/nodegit/libgit2/pull/10/files#diff-72cf55b9aa572e49ac69113788ac5f938d9e39152373950242d298d9b9d7cc8a
https://github.com/nodegit/libgit2/pull/10/files#diff-72cf55b9aa572e49ac69113788ac5f938d9e39152373950242d298d9b9d7cc8a
AlexaXshttps://github.com/AlexaXs
Jul 13, 2022https://github.com/nodegit/libgit2/pull/10/files#r920193138
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/nodegit/libgit2/pull/10/files
https://github.com/nodegit/libgit2/pull/10/files#diff-72cf55b9aa572e49ac69113788ac5f938d9e39152373950242d298d9b9d7cc8a
Please reload this pagehttps://github.com/nodegit/libgit2/pull/10/files
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.