|
SlHelpers
|
RevWalk is a representation of a git revwalk. More...
#include <Misc.h>
Public Member Functions | |
| bool | push (const git_oid &oid) const noexcept |
| Add one OID to this RevWalk. | |
| bool | push (const std::string &id) const noexcept |
| Add one commit SHA to this RevWalk. | |
| bool | pushHead () const noexcept |
| Add HEAD to this RevWalk. | |
| bool | pushRef (const std::string &ref) const noexcept |
Add a commit referenced by ref to this RevWalk. | |
| bool | pushGlob (const std::string &glob) const noexcept |
Add all references matching glob. | |
| bool | pushRange (const std::string &range) const noexcept |
Add all references matching range (commit1..commit2). | |
| bool | hide (const git_oid &oid) const noexcept |
Stop this RevWalk at oid. | |
| bool | hide (const std::string &id) const noexcept |
Stop this RevWalk at commit id. | |
| bool | hideGlob (const std::string &glob) const noexcept |
Stop this RevWalk at references matching glob. | |
| bool | sorting (unsigned int mode) const noexcept |
Set mode as sorting mode (GIT_SORT_NONE, GIT_SORT_TOPOLOGICAL, ...). | |
| std::optional< Commit > | next () const noexcept |
| Get next Commit in this RevWalk, or nullopt if there are no more. | |
| GitTy * | revWalk () const noexcept |
| Get the stored pointer to libgit2's git_revwalk. | |
| operator GitTy * () const noexcept | |
| Alias for revWalk() – implicit conversion. | |
Friends | |
| class | Repo |
RevWalk is a representation of a git revwalk.