Guitar
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
GitObjectManager Class Reference

#include <GitObjectManager.h>

Public Member Functions

 GitObjectManager ()
 
void setup ()
 
bool catFile (GitRunner g, const Git::Hash &id, QByteArray *out, Git::Object::Type *type)
 
void clearIndexes ()
 

Static Public Member Functions

static QStringList findObject (const QString &id, const QString &repo_local_dir)
 GitObjectManager::findObject. More...
 

Private Member Functions

bool extractObjectFromPackFile (GitPackIdxPtr const &idx, GitPackIdxItem const *item, GitPack::Object *out)
 
bool extractObjectFromPackFile (GitRunner g, const Git::Hash &id, QByteArray *out, Git::Object::Type *type)
 
void loadIndexes (GitRunner g)
 
QString findObjectPath (GitRunner g, const Git::Hash &id)
 
bool loadObject (GitRunner g, const Git::Hash &id, QByteArray *out, Git::Object::Type *type)
 
void init ()
 

Static Private Member Functions

static void applyDelta (QByteArray const *base, QByteArray const *delta, QByteArray *out)
 
static bool loadPackedObject (GitPackIdxPtr const &idx, QIODevice *packfile, GitPackIdxItem const *item, GitPack::Object *out)
 

Private Attributes

QString subdir_git_objects
 
QString subdir_git_objects_pack
 
std::vector< GitPackIdxPtrgit_idx_list
 

Friends

class GitObjectCache
 

Constructor & Destructor Documentation

◆ GitObjectManager()

GitObjectManager::GitObjectManager ( )
Here is the call graph for this function:

Member Function Documentation

◆ applyDelta()

void GitObjectManager::applyDelta ( QByteArray const *  base,
QByteArray const *  delta,
QByteArray *  out 
)
staticprivate

◆ catFile()

bool GitObjectManager::catFile ( GitRunner  g,
const Git::Hash id,
QByteArray *  out,
Git::Object::Type type 
)
Here is the call graph for this function:

◆ clearIndexes()

void GitObjectManager::clearIndexes ( )

◆ extractObjectFromPackFile() [1/2]

bool GitObjectManager::extractObjectFromPackFile ( GitPackIdxPtr const &  idx,
GitPackIdxItem const *  item,
GitPack::Object out 
)
private
Here is the call graph for this function:

◆ extractObjectFromPackFile() [2/2]

bool GitObjectManager::extractObjectFromPackFile ( GitRunner  g,
const Git::Hash id,
QByteArray *  out,
Git::Object::Type type 
)
private
Here is the call graph for this function:

◆ findObject()

QStringList GitObjectManager::findObject ( const QString &  id,
const QString &  repo_local_dir 
)
static

GitObjectManager::findObject.

Parameters
id
repo_local_dir
Here is the call graph for this function:

◆ findObjectPath()

QString GitObjectManager::findObjectPath ( GitRunner  g,
const Git::Hash id 
)
private
Here is the call graph for this function:

◆ init()

void GitObjectManager::init ( )
private

◆ loadIndexes()

void GitObjectManager::loadIndexes ( GitRunner  g)
private
Here is the call graph for this function:

◆ loadObject()

bool GitObjectManager::loadObject ( GitRunner  g,
const Git::Hash id,
QByteArray *  out,
Git::Object::Type type 
)
private
Here is the call graph for this function:

◆ loadPackedObject()

bool GitObjectManager::loadPackedObject ( GitPackIdxPtr const &  idx,
QIODevice *  packfile,
GitPackIdxItem const *  item,
GitPack::Object out 
)
staticprivate
Here is the call graph for this function:

◆ setup()

void GitObjectManager::setup ( )
Here is the call graph for this function:

Friends And Related Function Documentation

◆ GitObjectCache

friend class GitObjectCache
friend

Member Data Documentation

◆ git_idx_list

std::vector<GitPackIdxPtr> GitObjectManager::git_idx_list
private

◆ subdir_git_objects

QString GitObjectManager::subdir_git_objects
private

◆ subdir_git_objects_pack

QString GitObjectManager::subdir_git_objects_pack
private

The documentation for this class was generated from the following files: