Skip to content

Conversation

JohanMabille
Copy link
Member

@JohanMabille JohanMabille commented Sep 23, 2025

@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>();

}
}();

using resource_type = typename W::resoure_type;
Copy link
Collaborator

Choose a reason for hiding this comment

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

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

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.

2 participants