Code forensics
0.1
Generate historical information about code changes
|
#include <git2.h>
#include "common.hpp"
#include <fmt/core.h>
#include <iostream>
#include "gitwrap.hpp"
Go to the source code of this file.
Classes | |
struct | git::exception |
struct | fmt::formatter< git_oid > |
struct | DiffForeachParams |
struct | std::hash< git_oid > |
Hash for git OID. More... | |
Namespaces | |
git | |
C++ wrapper for the libgit2 library. | |
std | |
Macros | |
#define | __GIT_THROW_EXCEPTION(code, function) throw git::exception(code, function); |
Functions | |
Str | oid_tostr (git_oid oid) |
Convert git ID object to it's string representation. More... | |
void | tree_walk (const git_tree *tree, git_treewalk_mode mode, Func< int(const char *, const git_tree_entry *)> callback) |
Iterate over the git tree in specified order using provided callback. More... | |
void | diff_foreach (git_diff *diff, CR< DiffForeachParams > foreach) |
bool | operator== (CR< git_oid > lhs, CR< git_oid > rhs) |
Compare git OID for equality. More... | |
bool | operator< (CR< git_oid > lhs, CR< git_oid > rhs) |
std::ostream & | operator<< (std::ostream &out, git_oid const &oid) |
This file provides helper types and wrappers for the libgit API
#define __GIT_THROW_EXCEPTION | ( | code, | |
function | |||
) | throw git::exception(code, function); |
|
inline |
diff | A git_diff generated by one of the above functions. |
|
inline |
Convert git ID object to it's string representation.
|
inline |
|
inline |
|
inline |
Compare git OID for equality.
|
inline |
Iterate over the git tree in specified order using provided callback.
tree | Pointer to the git tree to walk over |
mode | Order of the tree walk |
callback | Callback to execute on each entry in the tree. Should return GIT_OK value in order continue the iteration. |