mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-14 18:26:16 +02:00
Move statusCallbackTrampoline
This commit is contained in:
parent
21bb180547
commit
d74d2fdaa7
1 changed files with 6 additions and 5 deletions
|
@ -130,11 +130,6 @@ T peelObject(git_repository * repo, git_object * obj, git_object_t type)
|
||||||
return obj2;
|
return obj2;
|
||||||
}
|
}
|
||||||
|
|
||||||
int statusCallbackTrampoline(const char * path, unsigned int statusFlags, void * payload)
|
|
||||||
{
|
|
||||||
return (*((std::function<int(const char * path, unsigned int statusFlags)> *) payload))(path, statusFlags);
|
|
||||||
}
|
|
||||||
|
|
||||||
struct GitRepoImpl : GitRepo, std::enable_shared_from_this<GitRepoImpl>
|
struct GitRepoImpl : GitRepo, std::enable_shared_from_this<GitRepoImpl>
|
||||||
{
|
{
|
||||||
CanonPath path;
|
CanonPath path;
|
||||||
|
@ -255,6 +250,12 @@ struct GitRepoImpl : GitRepo, std::enable_shared_from_this<GitRepoImpl>
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Helper for statusCallback below.
|
||||||
|
static int statusCallbackTrampoline(const char * path, unsigned int statusFlags, void * payload)
|
||||||
|
{
|
||||||
|
return (*((std::function<int(const char * path, unsigned int statusFlags)> *) payload))(path, statusFlags);
|
||||||
|
}
|
||||||
|
|
||||||
WorkdirInfo getWorkdirInfo() override
|
WorkdirInfo getWorkdirInfo() override
|
||||||
{
|
{
|
||||||
WorkdirInfo info;
|
WorkdirInfo info;
|
||||||
|
|
Loading…
Reference in a new issue