Guitar
Classes | Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
GitDiff Class Reference

#include <GitDiff.h>

Collaboration diagram for GitDiff:
Collaboration graph
[legend]

Classes

struct  Interrupted
 
class  LookupTable
 

Public Member Functions

 GitDiff (GitObjectCache *objcache)
 
bool diff (const Git::CommitID &id, const QList< Git::SubmoduleItem > &submodules, QList< Git::Diff > *out)
 コミットの差分を取得する More...
 
bool diff_uncommited (const QList< Git::SubmoduleItem > &submodules, QList< Git::Diff > *out)
 
void interrupt ()
 

Static Public Member Functions

static QString diffObjects (GitPtr g, QString const &a_id, QString const &b_id)
 
static QString diffFiles (GitPtr g, QString const &a_path, QString const &b_path)
 
static void parseDiff (std::string const &s, const Git::Diff *info, Git::Diff *out)
 
static QString makeKey (const QString &a_id, const QString &b_id)
 
static QString makeKey (const Git::Diff &diff)
 
static QString prependPathPrefix (QString const &path)
 

Private Types

using MapList = std::list< LookupTable >
 

Private Member Functions

void checkInterrupted ()
 
GitPtr git ()
 
GitPtr git (const Git::SubmoduleItem &submod)
 
void retrieveCompleteTree (QString const &dir, GitTreeItemList const *files, std::map< QString, GitTreeItem > *out)
 
void retrieveCompleteTree (QString const &dir, GitTreeItemList const *files)
 

Static Private Member Functions

static void AddItem (Git::Diff *item, QList< Git::Diff > *diffs)
 

Private Attributes

GitObjectCacheobjcache = nullptr
 
QList< Git::Diffdiffs
 
bool interrupted = false
 

Friends

class CommitListThread
 

Member Typedef Documentation

◆ MapList

using GitDiff::MapList = std::list<LookupTable>
private

Constructor & Destructor Documentation

◆ GitDiff()

GitDiff::GitDiff ( GitObjectCache objcache)
inline

Member Function Documentation

◆ AddItem()

static void GitDiff::AddItem ( Git::Diff item,
QList< Git::Diff > *  diffs 
)
staticprivate

◆ checkInterrupted()

void GitDiff::checkInterrupted ( )
inlineprivate

◆ diff()

bool GitDiff::diff ( const Git::CommitID id,
const QList< Git::SubmoduleItem > &  submodules,
QList< Git::Diff > *  out 
)

コミットの差分を取得する

Parameters
idコミットID
out
Returns
Here is the call graph for this function:

◆ diff_uncommited()

bool GitDiff::diff_uncommited ( const QList< Git::SubmoduleItem > &  submodules,
QList< Git::Diff > *  out 
)
Here is the call graph for this function:

◆ diffFiles()

QString GitDiff::diffFiles ( GitPtr  g,
QString const &  a_path,
QString const &  b_path 
)
static

◆ diffObjects()

QString GitDiff::diffObjects ( GitPtr  g,
QString const &  a_id,
QString const &  b_id 
)
static

◆ git() [1/2]

GitPtr GitDiff::git ( )
private
Here is the call graph for this function:

◆ git() [2/2]

GitPtr GitDiff::git ( const Git::SubmoduleItem submod)
private
Here is the call graph for this function:

◆ interrupt()

void GitDiff::interrupt ( )
inline

◆ makeKey() [1/2]

QString GitDiff::makeKey ( const Git::Diff diff)
static
Here is the call graph for this function:

◆ makeKey() [2/2]

QString GitDiff::makeKey ( const QString &  a_id,
const QString &  b_id 
)
static

◆ parseDiff()

void GitDiff::parseDiff ( std::string const &  s,
const Git::Diff info,
Git::Diff out 
)
static
Here is the call graph for this function:

◆ prependPathPrefix()

QString GitDiff::prependPathPrefix ( QString const &  path)
static

◆ retrieveCompleteTree() [1/2]

void GitDiff::retrieveCompleteTree ( QString const &  dir,
GitTreeItemList const *  files 
)
private
Here is the call graph for this function:

◆ retrieveCompleteTree() [2/2]

void GitDiff::retrieveCompleteTree ( QString const &  dir,
GitTreeItemList const *  files,
std::map< QString, GitTreeItem > *  out 
)
private
Here is the call graph for this function:

Friends And Related Function Documentation

◆ CommitListThread

friend class CommitListThread
friend

Member Data Documentation

◆ diffs

QList<Git::Diff> GitDiff::diffs
private

◆ interrupted

bool GitDiff::interrupted = false
private

◆ objcache

GitObjectCache* GitDiff::objcache = nullptr
private

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