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
GitDiffManager Class Reference

#include <GitDiffManager.h>

Collaboration diagram for GitDiffManager:
Collaboration graph
[legend]

Classes

class  LookupTable
 

Public Member Functions

 GitDiffManager (GitObjectCache *objcache)
 
std::vector< GitDiffdiff (GitRunner g, const GitHash &id, const std::vector< GitSubmoduleItem > &submodules)
 コミットの差分を取得する More...
 
std::vector< GitDiffdiff_uncommited (GitRunner g, const std::vector< GitSubmoduleItem > &submodules)
 

Static Public Member Functions

static std::string diffObjects (GitRunner g, const std::string &a_id, const std::string &b_id)
 
static std::string diffFiles (GitRunner g, const std::string &a_path, const std::string &b_path)
 
static GitDiff parseDiff (std::string const &s, GitDiff const &info)
 
static std::string makeKey (std::string const &a_id, std::string const &b_id)
 
static std::string makeKey (const GitDiff &diff)
 
static std::string prependPathPrefix (const std::string &path)
 

Private Types

using MapList = std::list< LookupTable >
 

Private Member Functions

GitRunner git_for_submodule (GitRunner g, const GitSubmoduleItem &submod)
 

Static Private Member Functions

static void AddItem (GitDiff *item, QList< GitDiff > *diffs)
 

Private Attributes

GitObjectCacheobjcache_ = nullptr
 

Friends

class CommitListThread
 

Member Typedef Documentation

◆ MapList

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

Constructor & Destructor Documentation

◆ GitDiffManager()

GitDiffManager::GitDiffManager ( GitObjectCache objcache)
inline

Member Function Documentation

◆ AddItem()

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

◆ diff()

std::vector< GitDiff > GitDiffManager::diff ( GitRunner  g,
const GitHash id,
const std::vector< GitSubmoduleItem > &  submodules 
)

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

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

◆ diff_uncommited()

std::vector< GitDiff > GitDiffManager::diff_uncommited ( GitRunner  g,
const std::vector< GitSubmoduleItem > &  submodules 
)
Here is the call graph for this function:

◆ diffFiles()

std::string GitDiffManager::diffFiles ( GitRunner  g,
const std::string &  a_path,
const std::string &  b_path 
)
static
Here is the call graph for this function:

◆ diffObjects()

std::string GitDiffManager::diffObjects ( GitRunner  g,
const std::string &  a_id,
const std::string &  b_id 
)
static
Here is the call graph for this function:

◆ git_for_submodule()

GitRunner GitDiffManager::git_for_submodule ( GitRunner  g,
const GitSubmoduleItem submod 
)
private
Here is the call graph for this function:

◆ makeKey() [1/2]

std::string GitDiffManager::makeKey ( const GitDiff diff)
static
Here is the call graph for this function:

◆ makeKey() [2/2]

std::string GitDiffManager::makeKey ( std::string const &  a_id,
std::string const &  b_id 
)
static

◆ parseDiff()

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

◆ prependPathPrefix()

std::string GitDiffManager::prependPathPrefix ( const std::string &  path)
static

Friends And Related Function Documentation

◆ CommitListThread

friend class CommitListThread
friend

Member Data Documentation

◆ objcache_

GitObjectCache* GitDiffManager::objcache_ = nullptr
private

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