FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Implemented template metod peel by JohanMabille · Pull Request #47 · QuantStack/git2cpp · GitHub

Repository navigation

Implemented template metod peel - #47

Merged
JohanMabille merged 2 commits into
QuantStack:mainfrom
JohanMabille:peel
Oct 17, 2025
Merged

JohanMabille merged 2 commits into
QuantStack:mainfrom
JohanMabille:peel

Conversation

JohanMabille commented Sep 23, 2025 •
edited
Loading

Copy link
Copy Markdown
Member

@SandrineP This will allow you to call peel with the return type that you want. For instance, if you have a reference_wrapper and you want to get the peeled commit from it and store it in a std::vector<commit_wrapper>:

std::vector<commit_wrapper> commit_list = { // ... };
auto head_ref = repo.head();
commit_list[0] = head_ref.peel<git_commit>();

Comment thread src/wrapper/refs_wrapper.hpp Outdated
}
}();

using resource_type = typename W::resoure_type;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

There is a missing "c" in the second "resource_type"

ianthomas23 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Approved, assuming the change proposed by Sandrine is included.

JohanMabille merged commit bd07ea7 into QuantStack:main Oct 17, 2025
1 check passed
JohanMabille deleted the peel branch October 17, 2025 07:56
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL