Git Class Reference

#include <git.h>

List of all members.

Public Types

enum  BoolOption {
  optFalse, optSaveCache, optGoDown, optOnlyLoaded,
  optDragDrop, optFold, optOnlyInIndex, optCreate
}
enum  RefType {
  TAG = 1, BRANCH = 2, RMT_BRANCH = 4, CUR_BRANCH = 8,
  REF = 16, APPLIED = 32, UN_APPLIED = 64, ANY_REF = 127
}

Public Slots

void on_procDataReady (const QByteArray &)
void on_eof ()

Signals

void newRevsAdded (const FileHistory *, const QValueVector< QString > &)
void loadCompleted (const FileHistory *, const QString &)
void cancelLoading (const FileHistory *)
void cancelAllProcesses ()
void annotateReady (Annotate *, const QString &, bool, const QString &)

Public Member Functions

 Git (QWidget *parent)
void checkEnvironment ()
void userInfo (SList info)
const QString getBaseDir (bool *c, SCRef wd, bool *ok=NULL, QString *gd=NULL)
bool init (SCRef workDir, bool askForRange, QStringList *filterList, bool *quit)
bool stop (bool saveCache)
void setThrowOnStop (bool b)
bool isThrowOnStopRaised (int excpId, SCRef curContext)
void setLane (SCRef sha, FileHistory *fh)
AnnotatestartAnnotate (FileHistory *fh, QObject *guiObj)
const FileAnnotationlookupAnnotation (Annotate *ann, SCRef fileName, SCRef sha)
void cancelAnnotate (Annotate *ann)
bool startFileHistory (FileHistory *fh)
void cancelDataLoading (const FileHistory *fh)
void cancelProcess (MyProcess *p)
bool isCommittingMerge () const
bool isStGITStack () const
bool isPatchName (SCRef nm)
bool isSameFiles (SCRef tree1Sha, SCRef tree2Sha)
bool isBinaryFile (SCRef file)
bool isNothingToCommit ()
bool isUnknownFiles () const
bool isTextHighlighter () const
bool isMainHistory (const FileHistory *fh)
MyProcessgetDiff (SCRef sha, QObject *receiver, SCRef diffToSha, bool combined)
MyProcessgetFile (SCRef file, SCRef revSha, QObject *rcv, QByteArray *ro=NULL, QString *fSha=NULL)
MyProcessgetHighlightedFile (SCRef file, SCRef revSha, QObject *rcv, QString *ro=NULL)
bool saveFile (SCRef fileName, SCRef sha, SCRef path)
void getFileFilter (SCRef path, QMap< QString, bool > &shaMap)
bool getPatchFilter (SCRef exp, bool isRegExp, QMap< QString, bool > &shaMap)
const RevFilegetFiles (SCRef sha, SCRef sha2="", bool all=false, SCRef path="")
bool getTree (SCRef ts, SList nm, SList sha, SList type, bool wd, SCRef treePath)
const QString getDesc (SCRef sha, QRegExp &shortLogRE, QRegExp &longLogRE, bool showHeader)
const QString getDefCommitMsg ()
const QString getLaneParent (SCRef fromSHA, uint laneNum)
const QStringList getChilds (SCRef parent)
const QStringList getNearTags (bool goDown, SCRef sha)
const QStringList getDescendantBranches (SCRef sha)
const QString getShortLog (SCRef sha)
const QString getTagMsg (SCRef sha)
const RevrevLookup (SCRef sha, const FileHistory *fh=NULL) const
uint checkRef (SCRef sha, uint mask=ANY_REF) const
const QString getRevInfo (SCRef sha)
const QString getRefSha (SCRef refName, RefType type=ANY_REF, bool askGit=true)
const QStringList getRefName (SCRef sha, RefType type, QString *curBranch=NULL) const
const QStringList getAllRefNames (uint mask, bool onlyLoaded)
const QStringList getAllRefSha (uint mask)
void getWorkDirFiles (SList files, SList dirs, RevFile::StatusFlag status)
QTextCodec * getTextCodec (bool *isGitArchive)
bool formatPatch (SCList shaList, SCRef dirPath, SCRef remoteDir="")
bool updateIndex (SCList selFiles)
bool commitFiles (SCList files, SCRef msg)
bool makeTag (SCRef sha, SCRef tag, SCRef msg)
bool deleteTag (SCRef sha)
bool applyPatchFile (SCRef patchPath, bool fold, bool sign)
bool resetCommits (int parentDepth)
bool stgCommit (SCList selFiles, SCRef msg, SCRef patchName, bool fold)
bool stgPush (SCRef sha)
bool stgPop (SCRef sha)
void setTextCodec (QTextCodec *tc)
void addExtraFileInfo (QString *rowName, SCRef sha, SCRef diffToSha, bool allMergeFiles)
void removeExtraFileInfo (QString *rowName)
void formatPatchFileHeader (QString *rowName, SCRef sha, SCRef dts, bool cmb, bool all)
int findFileIndex (const RevFile &rf, SCRef name)
const QString filePath (const RevFile &rf, uint i) const
void setCurContext (Domain *d)
DomaincurContext () const

Static Public Member Functions

static const QString getLocalDate (SCRef gitDate)

Private Types

typedef QMap
< QString, Reference
RefMap

Private Slots

void loadFileNames ()
void on_runAsScript_eof ()
void on_getHighlightedFile_eof ()
void on_newDataReady (const FileHistory *)
void on_loaded (const FileHistory *, ulong, int, bool, const QString &, const QString &)

Private Member Functions

bool run (SCRef cmd, QString *out=NULL, QObject *rcv=NULL, SCRef buf="", QStringList *env=0)
bool run (QByteArray *runOutput, SCRef cmd, QObject *rcv=NULL, SCRef buf="", QStringList *env=0)
MyProcessrunAsync (SCRef cmd, QObject *rcv, SCRef buf="", QStringList *env=0)
MyProcessrunAsScript (SCRef cmd, QObject *rcv=NULL, SCRef buf="", QStringList *env=0)
bool allProcessDeleted ()
const QStringList getArgs (bool askForRange, bool *quit)
bool getRefs ()
void parseStGitPatches (SCList patchNames, SCList patchShas)
void clearRevs ()
void clearFileNames ()
bool startRevList (SCList args, FileHistory *fh)
bool startUnappliedList ()
bool startParseProc (SCList initCmd, FileHistory *fh)
int addChunk (FileHistory *fh, const QByteArray &ba, int ofs)
void parseDiffFormat (RevFile &rf, SCRef buf)
void parseDiffFormatLine (RevFile &rf, SCRef line, int parNum)
void getDiffIndex ()
const QString getFileSha (SCRef file, SCRef revSha)
const RevfakeWorkDirRev (SCRef parent, SCRef log, SCRef longLog, int idx, FileHistory *fh)
const RevFilefakeWorkDirRevFile (const WorkingDirInfo &wd)
bool copyDiffIndex (FileHistory *fh, SCRef parent)
const RevFileinsertNewFiles (SCRef sha, SCRef data)
const RevFilegetAllMergeFiles (const Rev *r)
bool isParentOf (SCRef par, SCRef child)
bool isTreeModified (SCRef sha)
void indexTree ()
void annotateExited (Annotate *ann)
void updateDescMap (const Rev *r, uint i, QMap< QPair< uint, uint >, bool > &dm, QMap< uint, QValueVector< int > > &dv)
void mergeNearTags (bool down, Rev *p, const Rev *r, const QMap< QPair< uint, uint >, bool > &dm)
void mergeBranches (Rev *p, const Rev *r)
void updateLanes (Rev &c, Lanes &lns, SCRef sha)
bool mkPatchFromIndex (SCRef msg, SCRef patchFile)
const QStringList getOthersFiles ()
const QStringList getOtherFiles (SCList selFiles, bool onlyInIndex)
void appendFileName (RevFile &rf, SCRef name)
void populateFileNamesMap ()
void removeDeleted (SCList selFiles)
void setStatus (RevFile &rf, SCRef rowSt)
void setExtStatus (RevFile &rf, SCRef rowSt, int parNum)
void appendNamesWithId (QStringList &names, SCRef sha, SCList data, bool onlyLoaded)
ReferencelookupReference (SCRef sha, bool create=false)
 EM_DECLARE (exGitStopped)

Static Private Member Functions

static void removeFiles (SCList selFiles, SCRef workDir, SCRef ext)
static void restoreFiles (SCList selFiles, SCRef workDir, SCRef ext)
static const QString colorMatch (SCRef txt, QRegExp &regExp)
static const QString quote (SCRef nm)
static const QString quote (SCList sl)
static const QStringList noSpaceSepHack (SCRef cmd)

Private Attributes

RefMap refsShaMap
WorkingDirInfo _wd
DomaincurDomain
QString workDir
QString gitDir
QString filesLoadingPending
QString filesLoadingCurSha
QString curRange
bool cacheNeedsUpdate
bool errorReportingEnabled
bool isMergeHead
bool isStGIT
bool isGIT
bool isTextHighlighterFound
bool loadingUnAppliedPatches
bool fileCacheAccessed
int patchesStillToFind
QString firstNonStGitPatch
RevFileMap revsFiles
StrVect fileNamesVec
StrVect dirNamesVec
QMap< QString, int > fileNamesMap
QMap< QString, int > dirNamesMap
FileHistory revData

Friends

class Annotate
class MainImpl
class DataLoader
class ConsoleImpl
class RevsView

Classes

struct  Reference
struct  WorkingDirInfo


Detailed Description

Definition at line 36 of file git.h.


Member Typedef Documentation

typedef QMap<QString, Reference> RefMap [private]

Definition at line 170 of file git.h.


Member Enumeration Documentation

enum BoolOption

Enumerator:
optFalse 
optSaveCache 
optGoDown 
optOnlyLoaded 
optDragDrop 
optFold 
optOnlyInIndex 
optCreate 

Definition at line 41 of file git.h.

enum RefType

Enumerator:
TAG 
BRANCH 
RMT_BRANCH 
CUR_BRANCH 
REF 
APPLIED 
UN_APPLIED 
ANY_REF 

Definition at line 52 of file git.h.


Constructor & Destructor Documentation

Git ( QWidget *  parent  )  [explicit]

Definition at line 53 of file git.cpp.


Member Function Documentation

void checkEnvironment (  ) 

Definition at line 66 of file git.cpp.

Referenced by MainImpl::initWithEventLoopActive().

void userInfo ( SList  info  ) 

Definition at line 93 of file git.cpp.

Referenced by SettingsImpl::userInfo().

const QString getBaseDir ( bool *  c,
SCRef  wd,
bool *  ok = NULL,
QString *  gd = NULL 
)

Definition at line 58 of file git_startup.cpp.

Referenced by init(), and MainImpl::setRepository().

bool init ( SCRef  workDir,
bool  askForRange,
QStringList *  filterList,
bool *  quit 
)

Definition at line 535 of file git_startup.cpp.

Referenced by MainImpl::setRepository().

bool stop ( bool  saveCache  ) 

Definition at line 490 of file git_startup.cpp.

Referenced by MainImpl::closeEvent(), and MainImpl::setRepository().

void setThrowOnStop ( bool  b  ) 

Definition at line 135 of file git.cpp.

Referenced by init(), and Domain::update().

bool isThrowOnStopRaised ( int  excpId,
SCRef  curContext 
)

Definition at line 143 of file git.cpp.

Referenced by init(), and Domain::update().

void setLane ( SCRef  sha,
FileHistory fh 
)

Definition at line 810 of file git_startup.cpp.

Referenced by ListViewItem::setupData().

Annotate * startAnnotate ( FileHistory fh,
QObject *  guiObj 
)

Definition at line 429 of file git.cpp.

Referenced by FileContent::startAnnotate().

const FileAnnotation * lookupAnnotation ( Annotate ann,
SCRef  fileName,
SCRef  sha 
)

Definition at line 450 of file git.cpp.

Referenced by FileContent::lookupAnnotation().

void cancelAnnotate ( Annotate ann  ) 

Definition at line 436 of file git.cpp.

Referenced by FileContent::clearAnnotate().

bool startFileHistory ( FileHistory fh  ) 

Definition at line 1060 of file git.cpp.

Referenced by FileView::doUpdate().

void cancelDataLoading ( const FileHistory fh  ) 

Definition at line 455 of file git.cpp.

Referenced by ListView::clear(), and ListView::~ListView().

void cancelProcess ( MyProcess p  ) 

Definition at line 515 of file git.cpp.

Referenced by FileContent::clearText(), DataLoader::on_cancel(), ConsoleImpl::pushButtonStop_clicked(), PatchView::updatePatch(), and PatchView::~PatchView().

bool isCommittingMerge (  )  const [inline]

Definition at line 77 of file git.h.

Referenced by MainImpl::on_newRevsAdded().

bool isStGITStack (  )  const [inline]

Definition at line 78 of file git.h.

Referenced by MainImpl::askApplyPatchParameters(), CommitImpl::checkConfirm(), CommitImpl::CommitImpl(), CommitImpl::pushButtonOk_clicked(), CommitImpl::pushButtonUpdateCache_clicked(), and MainImpl::setRepository().

bool isPatchName ( SCRef  nm  ) 

Definition at line 380 of file git.cpp.

Referenced by CommitImpl::checkPatchName().

bool isSameFiles ( SCRef  tree1Sha,
SCRef  tree2Sha 
)

Definition at line 799 of file git.cpp.

Referenced by TreeView::update().

bool isBinaryFile ( SCRef  file  ) 

Definition at line 121 of file git.cpp.

Referenced by saveFile().

bool isNothingToCommit (  ) 

Definition at line 774 of file git.cpp.

Referenced by getDiffIndex(), MainImpl::on_newRevsAdded(), and MainImpl::updateContextActions().

bool isUnknownFiles (  )  const [inline]

Definition at line 83 of file git.h.

Referenced by MainImpl::on_newRevsAdded().

bool isTextHighlighter (  )  const [inline]

Definition at line 84 of file git.h.

Referenced by getHighlightedFile(), FileContent::setHighlightSource(), and FileView::updateEnabledButtons().

bool isMainHistory ( const FileHistory fh  )  [inline]

Definition at line 85 of file git.h.

Referenced by addChunk(), ListView::clear(), ListView::getSha(), ListView::ListView(), RevsView::on_loadCompleted(), on_loaded(), MainImpl::on_newRevsAdded(), ListViewItem::paintCell(), ListViewItem::setupData(), ListView::setupListView(), startRevList(), ListView::update(), and ListView::updateIdValues().

MyProcess * getDiff ( SCRef  sha,
QObject *  receiver,
SCRef  diffToSha,
bool  combined 
)

Definition at line 594 of file git.cpp.

Referenced by PatchView::updatePatch().

MyProcess * getFile ( SCRef  file,
SCRef  revSha,
QObject *  rcv,
QByteArray *  ro = NULL,
QString *  fSha = NULL 
)

Definition at line 626 of file git.cpp.

Referenced by MainImpl::getExternalDiffArgs(), saveFile(), Annotate::setInitialAnnotation(), and FileContent::update().

MyProcess * getHighlightedFile ( SCRef  file,
SCRef  revSha,
QObject *  rcv,
QString *  ro = NULL 
)

Definition at line 659 of file git.cpp.

Referenced by FileContent::update().

bool saveFile ( SCRef  fileName,
SCRef  sha,
SCRef  path 
)

Definition at line 691 of file git.cpp.

Referenced by MainImpl::ActSaveFile_activated(), and getHighlightedFile().

void getFileFilter ( SCRef  path,
QMap< QString, bool > &  shaMap 
)

Definition at line 1065 of file git.cpp.

Referenced by MainImpl::filterList().

bool getPatchFilter ( SCRef  exp,
bool  isRegExp,
QMap< QString, bool > &  shaMap 
)

Definition at line 1083 of file git.cpp.

Referenced by MainImpl::filterList().

const RevFile * getFiles ( SCRef  sha,
SCRef  sha2 = "",
bool  all = false,
SCRef  path = "" 
)

Definition at line 1013 of file git.cpp.

Referenced by addExtraFileInfo(), ListViewItem::changedFiles(), commitFiles(), CommitImpl::CommitImpl(), copyDiffIndex(), RevsView::doUpdate(), PatchView::doUpdate(), getOtherFiles(), getWorkDirFiles(), isTreeModified(), loadFileNames(), and removeDeleted().

bool getTree ( SCRef  ts,
SList  nm,
SList  sha,
SList  type,
bool  wd,
SCRef  treePath 
)

Definition at line 701 of file git.cpp.

Referenced by TreeView::getTree().

const QString getLocalDate ( SCRef  gitDate  )  [static]

Definition at line 197 of file git.cpp.

Referenced by getDesc(), and ListViewItem::setupData().

const QString getDesc ( SCRef  sha,
QRegExp &  shortLogRE,
QRegExp &  longLogRE,
bool  showHeader 
)

Definition at line 909 of file git.cpp.

Referenced by RevsView::on_updateRevDesc(), and PatchView::on_updateRevDesc().

const QString getDefCommitMsg (  ) 

Definition at line 870 of file git.cpp.

Referenced by CommitImpl::CommitImpl().

const QString getLaneParent ( SCRef  fromSHA,
uint  laneNum 
)

Definition at line 537 of file git.cpp.

Referenced by ListView::getLaneParentsChilds().

const QStringList getChilds ( SCRef  parent  ) 

Definition at line 565 of file git.cpp.

Referenced by getDesc(), and ListView::getLaneParentsChilds().

const QStringList getNearTags ( bool  goDown,
SCRef  sha 
)

Definition at line 845 of file git.cpp.

Referenced by getDesc().

const QStringList getDescendantBranches ( SCRef  sha  ) 

Definition at line 819 of file git.cpp.

Referenced by getDesc().

const QString getShortLog ( SCRef  sha  ) 

Definition at line 588 of file git.cpp.

Referenced by PatchView::doUpdate(), and RevsView::on_lanesContextMenuRequested().

const QString getTagMsg ( SCRef  sha  ) 

Definition at line 359 of file git.cpp.

Referenced by getRevInfo().

const Rev * revLookup ( SCRef  sha,
const FileHistory fh = NULL 
) const

Definition at line 461 of file git.cpp.

Referenced by addChunk(), appendNamesWithId(), Annotate::computeRanges(), copyDiffIndex(), Annotate::doAnnotate(), getChilds(), getDefCommitMsg(), getDesc(), getDescendantBranches(), MainImpl::getExternalDiffArgs(), getFiles(), getLaneParent(), ListView::getLaneParentsChilds(), ListViewItem::getLaneType(), getNearTags(), getShortLog(), indexTree(), Annotate::isDescendant(), isParentOf(), loadFileNames(), mergeBranches(), mergeNearTags(), ListViewItem::paintCell(), MainImpl::passFilter(), Domain::populateState(), setLane(), MainImpl::updateContextActions(), updateDescMap(), and PatchView::updatePatch().

uint checkRef ( SCRef  sha,
uint  mask = ANY_REF 
) const

Definition at line 204 of file git.cpp.

Referenced by MainImpl::ActPush_activated(), getRefName(), getRevInfo(), getTagMsg(), indexTree(), mergeBranches(), mergeNearTags(), ListViewItem::paintTagMarks(), RangeSelectImpl::RangeSelectImpl(), and MainImpl::updateContextActions().

const QString getRevInfo ( SCRef  sha  ) 

Definition at line 325 of file git.cpp.

Referenced by RevsView::doUpdate(), and FileView::doUpdate().

const QString getRefSha ( SCRef  refName,
RefType  type = ANY_REF,
bool  askGit = true 
)

Definition at line 247 of file git.cpp.

Referenced by MainImpl::ActTag_activated(), getDefCommitMsg(), getDesc(), isPatchName(), PatchView::on_buttonGroupDiff_clicked(), MainImpl::on_goRef_activated(), and RangeSelectImpl::RangeSelectImpl().

const QStringList getRefName ( SCRef  sha,
RefType  type,
QString *  curBranch = NULL 
) const

Definition at line 210 of file git.cpp.

Referenced by ListViewItem::addBranchPixmap(), deleteTag(), getRevInfo(), ListViewItem::paintTagMarks(), stgPop(), and stgPush().

const QStringList getAllRefNames ( uint  mask,
bool  onlyLoaded 
)

Definition at line 295 of file git.cpp.

Referenced by MainImpl::doContexPopup(), and getArgs().

const QStringList getAllRefSha ( uint  mask  ) 

Definition at line 238 of file git.cpp.

Referenced by Annotate::getAncestor(), getDefCommitMsg(), init(), startRevList(), and startUnappliedList().

void getWorkDirFiles ( SList  files,
SList  dirs,
RevFile::StatusFlag  status 
)

Definition at line 750 of file git.cpp.

Referenced by getFileSha(), getTree(), and TreeView::setTree().

QTextCodec * getTextCodec ( bool *  isGitArchive  ) 

Definition at line 169 of file git.cpp.

Referenced by init(), and SettingsImpl::setupCodecsCombo().

bool formatPatch ( SCList  shaList,
SCRef  dirPath,
SCRef  remoteDir = "" 
)

Definition at line 1137 of file git.cpp.

Referenced by MainImpl::ActMailFormatPatch_activated(), and RevsView::on_droppedRevisions().

bool updateIndex ( SCList  selFiles  ) 

Definition at line 1174 of file git.cpp.

Referenced by commitFiles(), CommitImpl::pushButtonUpdateCache_clicked(), and stgCommit().

bool commitFiles ( SCList  files,
SCRef  msg 
)

Definition at line 1184 of file git.cpp.

Referenced by CommitImpl::pushButtonOk_clicked().

bool makeTag ( SCRef  sha,
SCRef  tag,
SCRef  msg 
)

Definition at line 1373 of file git.cpp.

Referenced by MainImpl::ActTag_activated().

bool deleteTag ( SCRef  sha  ) 

Definition at line 1381 of file git.cpp.

Referenced by MainImpl::ActTagDelete_activated().

bool applyPatchFile ( SCRef  patchPath,
bool  fold,
bool  sign 
)

Definition at line 1116 of file git.cpp.

Referenced by MainImpl::ActMailApplyPatch_activated(), and RevsView::on_droppedRevisions().

bool resetCommits ( int  parentDepth  ) 

Definition at line 1109 of file git.cpp.

Referenced by MainImpl::ActMailApplyPatch_activated(), and RevsView::on_droppedRevisions().

bool stgCommit ( SCList  selFiles,
SCRef  msg,
SCRef  patchName,
bool  fold 
)

Definition at line 1301 of file git.cpp.

Referenced by CommitImpl::pushButtonOk_clicked(), and CommitImpl::pushButtonUpdateCache_clicked().

bool stgPush ( SCRef  sha  ) 

Definition at line 1390 of file git.cpp.

Referenced by MainImpl::ActPush_activated().

bool stgPop ( SCRef  sha  ) 

Definition at line 1400 of file git.cpp.

Referenced by MainImpl::ActPop_activated().

void setTextCodec ( QTextCodec *  tc  ) 

Definition at line 156 of file git.cpp.

Referenced by SettingsImpl::comboBoxCodecs_activated().

void addExtraFileInfo ( QString *  rowName,
SCRef  sha,
SCRef  diffToSha,
bool  allMergeFiles 
)

Definition at line 388 of file git.cpp.

Referenced by formatPatchFileHeader(), and ListBoxFiles::update().

void removeExtraFileInfo ( QString *  rowName  ) 

Definition at line 405 of file git.cpp.

Referenced by ListBoxFiles::on_currentChanged(), and ListBoxFiles::update().

void formatPatchFileHeader ( QString *  rowName,
SCRef  sha,
SCRef  dts,
bool  cmb,
bool  all 
)

Definition at line 411 of file git.cpp.

Referenced by PatchView::centerOnFileHeader().

int findFileIndex ( const RevFile rf,
SCRef  name 
)

Definition at line 521 of file git.cpp.

Referenced by addExtraFileInfo(), commitFiles(), copyDiffIndex(), fakeWorkDirRevFile(), and removeDeleted().

const QString filePath ( const RevFile rf,
uint  i 
) const [inline]

Definition at line 127 of file git.h.

Referenced by CommitImpl::CommitImpl(), fakeWorkDirRevFile(), getFileFilter(), getOtherFiles(), getWorkDirFiles(), and ListBoxFiles::insertFiles().

void setCurContext ( Domain d  )  [inline]

Definition at line 131 of file git.h.

Referenced by MyProcess::runSync(), and Domain::update().

Domain* curContext (  )  const [inline]

Definition at line 132 of file git.h.

Referenced by MyProcess::runSync(), MyProcess::setupSignals(), and Domain::update().

void newRevsAdded ( const FileHistory ,
const QValueVector< QString > &   
) [signal]

Referenced by getDiffIndex(), and on_newDataReady().

void loadCompleted ( const FileHistory ,
const QString &   
) [signal]

Referenced by on_loaded().

void cancelLoading ( const FileHistory  )  [signal]

Referenced by cancelDataLoading(), and startParseProc().

void cancelAllProcesses (  )  [signal]

Referenced by stop().

void annotateReady ( Annotate ,
const QString &  ,
bool  ,
const QString &   
) [signal]

Referenced by annotateExited().

void on_procDataReady ( const QByteArray &  fileChunk  )  [slot]

Definition at line 875 of file git_startup.cpp.

void on_eof (  )  [inline, slot]

Definition at line 143 of file git.h.

void loadFileNames (  )  [private, slot]

Definition at line 670 of file git_startup.cpp.

Referenced by on_loaded().

void on_runAsScript_eof (  )  [private, slot]

Definition at line 509 of file git.cpp.

Referenced by runAsScript().

void on_getHighlightedFile_eof (  )  [private, slot]

Definition at line 683 of file git.cpp.

Referenced by getHighlightedFile().

void on_newDataReady ( const FileHistory fh  )  [private, slot]

Definition at line 623 of file git_startup.cpp.

Referenced by on_loaded(), and startParseProc().

void on_loaded ( const FileHistory fh,
ulong  byteSize,
int  loadTime,
bool  normalExit,
const QString &  cmd,
const QString &  errorDesc 
) [private, slot]

Definition at line 628 of file git_startup.cpp.

Referenced by startParseProc().

bool run ( SCRef  cmd,
QString *  out = NULL,
QObject *  rcv = NULL,
SCRef  buf = "",
QStringList *  env = 0 
) [private]

Definition at line 467 of file git.cpp.

Referenced by applyPatchFile(), checkEnvironment(), commitFiles(), deleteTag(), formatPatch(), getAllMergeFiles(), getBaseDir(), getDefCommitMsg(), getDiffIndex(), getFile(), getFiles(), getFileSha(), getHighlightedFile(), Annotate::getNextPatch(), getOthersFiles(), getPatchFilter(), getRefs(), getRefSha(), getTagMsg(), getTextCodec(), getTree(), isSameFiles(), makeTag(), mkPatchFromIndex(), DataLoader::on_cancel(), parseStGitPatches(), resetCommits(), setTextCodec(), stgCommit(), stgPop(), stgPush(), updateIndex(), and userInfo().

bool run ( QByteArray *  runOutput,
SCRef  cmd,
QObject *  rcv = NULL,
SCRef  buf = "",
QStringList *  env = 0 
) [private]

Definition at line 481 of file git.cpp.

MyProcess * runAsync ( SCRef  cmd,
QObject *  rcv,
SCRef  buf = "",
QStringList *  env = 0 
) [private]

Definition at line 487 of file git.cpp.

Referenced by DataLoader::doStart(), getDiff(), getFile(), getHighlightedFile(), loadFileNames(), runAsScript(), and ConsoleImpl::start().

MyProcess * runAsScript ( SCRef  cmd,
QObject *  rcv = NULL,
SCRef  buf = "",
QStringList *  env = 0 
) [private]

Definition at line 497 of file git.cpp.

Referenced by ConsoleImpl::start().

bool allProcessDeleted (  )  [private]

Definition at line 148 of file git.cpp.

Referenced by stop().

const QStringList getArgs ( bool  askForRange,
bool *  quit 
) [private]

Definition at line 29 of file git_startup.cpp.

Referenced by init().

bool getRefs (  )  [private]

Definition at line 95 of file git_startup.cpp.

Referenced by init().

void parseStGitPatches ( SCList  patchNames,
SCList  patchShas 
) [private]

Definition at line 198 of file git_startup.cpp.

Referenced by getRefs().

void clearRevs (  )  [private]

Definition at line 516 of file git_startup.cpp.

Referenced by init().

void clearFileNames (  )  [private]

Definition at line 525 of file git_startup.cpp.

Referenced by init(), and loadFileNames().

bool startRevList ( SCList  args,
FileHistory fh 
) [private]

Definition at line 454 of file git_startup.cpp.

Referenced by init(), and startFileHistory().

bool startUnappliedList (  )  [private]

Definition at line 474 of file git_startup.cpp.

Referenced by init().

bool startParseProc ( SCList  initCmd,
FileHistory fh 
) [private]

Definition at line 436 of file git_startup.cpp.

Referenced by startRevList(), and startUnappliedList().

int addChunk ( FileHistory fh,
const QByteArray &  ba,
int  ofs 
) [private]

Definition at line 705 of file git_startup.cpp.

Referenced by DataLoader::addSplittedChunks(), and DataLoader::parseSingleBuffer().

void parseDiffFormat ( RevFile rf,
SCRef  buf 
) [private]

Definition at line 420 of file git_startup.cpp.

Referenced by fakeWorkDirRevFile(), and insertNewFiles().

void parseDiffFormatLine ( RevFile rf,
SCRef  line,
int  parNum 
) [private]

Definition at line 326 of file git_startup.cpp.

Referenced by on_procDataReady(), and parseDiffFormat().

void getDiffIndex (  )  [private]

Definition at line 291 of file git_startup.cpp.

Referenced by init().

const QString getFileSha ( SCRef  file,
SCRef  revSha 
) [private]

Definition at line 610 of file git.cpp.

Referenced by Annotate::getAncestor(), and getFile().

const Rev * fakeWorkDirRev ( SCRef  parent,
SCRef  log,
SCRef  longLog,
int  idx,
FileHistory fh 
) [private]

Definition at line 249 of file git_startup.cpp.

Referenced by copyDiffIndex(), and getDiffIndex().

const RevFile * fakeWorkDirRevFile ( const WorkingDirInfo wd  )  [private]

Definition at line 271 of file git_startup.cpp.

Referenced by getDiffIndex(), and loadFileNames().

bool copyDiffIndex ( FileHistory fh,
SCRef  parent 
) [private]

Definition at line 788 of file git_startup.cpp.

Referenced by addChunk().

const RevFile * insertNewFiles ( SCRef  sha,
SCRef  data 
) [private]

Definition at line 991 of file git.cpp.

Referenced by getAllMergeFiles(), and getFiles().

const RevFile * getAllMergeFiles ( const Rev r  )  [private]

Definition at line 999 of file git.cpp.

Referenced by getFiles().

bool isParentOf ( SCRef  par,
SCRef  child 
) [private]

Definition at line 793 of file git.cpp.

Referenced by isSameFiles().

bool isTreeModified ( SCRef  sha  )  [private]

Definition at line 780 of file git.cpp.

Referenced by isSameFiles().

void indexTree (  )  [private]

Definition at line 1055 of file git_startup.cpp.

Referenced by loadFileNames().

void annotateExited ( Annotate ann  )  [private]

Definition at line 442 of file git.cpp.

Referenced by Annotate::slotComputeDiffs().

void updateDescMap ( const Rev r,
uint  i,
QMap< QPair< uint, uint >, bool > &  dm,
QMap< uint, QValueVector< int > > &  dv 
) [private]

Definition at line 940 of file git_startup.cpp.

Referenced by indexTree().

void mergeNearTags ( bool  down,
Rev p,
const Rev r,
const QMap< QPair< uint, uint >, bool > &  dm 
) [private]

Definition at line 999 of file git_startup.cpp.

Referenced by indexTree().

void mergeBranches ( Rev p,
const Rev r 
) [private]

Definition at line 980 of file git_startup.cpp.

Referenced by indexTree().

void updateLanes ( Rev c,
Lanes lns,
SCRef  sha 
) [private]

Definition at line 827 of file git_startup.cpp.

Referenced by setLane().

void removeFiles ( SCList  selFiles,
SCRef  workDir,
SCRef  ext 
) [static, private]

Definition at line 1276 of file git.cpp.

Referenced by stgCommit().

void restoreFiles ( SCList  selFiles,
SCRef  workDir,
SCRef  ext 
) [static, private]

Definition at line 1283 of file git.cpp.

Referenced by stgCommit().

bool mkPatchFromIndex ( SCRef  msg,
SCRef  patchFile 
) [private]

Definition at line 1250 of file git.cpp.

Referenced by stgCommit().

const QStringList getOthersFiles (  )  [private]

Definition at line 229 of file git_startup.cpp.

Referenced by getDiffIndex().

const QStringList getOtherFiles ( SCList  selFiles,
bool  onlyInIndex 
) [private]

Definition at line 1260 of file git.cpp.

Referenced by commitFiles(), and stgCommit().

const QString colorMatch ( SCRef  txt,
QRegExp &  regExp 
) [static, private]

Definition at line 889 of file git.cpp.

Referenced by getDesc().

void appendFileName ( RevFile rf,
SCRef  name 
) [private]

Definition at line 907 of file git_startup.cpp.

Referenced by fakeWorkDirRevFile(), parseDiffFormatLine(), and setExtStatus().

void populateFileNamesMap (  )  [private]

Definition at line 661 of file git_startup.cpp.

Referenced by loadFileNames().

const QString quote ( SCRef  nm  )  [static, private]

Definition at line 185 of file git.cpp.

Referenced by applyPatchFile(), commitFiles(), getFile(), getFileSha(), getHighlightedFile(), getOthersFiles(), getPatchFilter(), stgCommit(), stgPop(), stgPush(), and updateIndex().

const QString quote ( SCList  sl  )  [static, private]

Definition at line 190 of file git.cpp.

static const QStringList noSpaceSepHack ( SCRef  cmd  )  [static, private]

void removeDeleted ( SCList  selFiles  )  [private]

Definition at line 1290 of file git.cpp.

Referenced by stgCommit().

void setStatus ( RevFile rf,
SCRef  rowSt 
) [private]

Definition at line 352 of file git_startup.cpp.

Referenced by parseDiffFormatLine().

void setExtStatus ( RevFile rf,
SCRef  rowSt,
int  parNum 
) [private]

Definition at line 380 of file git_startup.cpp.

Referenced by parseDiffFormatLine().

void appendNamesWithId ( QStringList &  names,
SCRef  sha,
SCList  data,
bool  onlyLoaded 
) [private]

Definition at line 281 of file git.cpp.

Referenced by getAllRefNames().

Git::Reference * lookupReference ( SCRef  sha,
bool  create = false 
) [private]

Definition at line 86 of file git_startup.cpp.

Referenced by addChunk(), getRefs(), and parseStGitPatches().

EM_DECLARE ( exGitStopped   )  [private]


Friends And Related Function Documentation

friend class Annotate [friend]

Definition at line 152 of file git.h.

Referenced by startAnnotate().

friend class MainImpl [friend]

Definition at line 153 of file git.h.

friend class DataLoader [friend]

Definition at line 154 of file git.h.

Referenced by startParseProc().

friend class ConsoleImpl [friend]

Definition at line 155 of file git.h.

friend class RevsView [friend]

Definition at line 156 of file git.h.


Member Data Documentation

RefMap refsShaMap [private]

Definition at line 171 of file git.h.

Referenced by checkRef(), getAllRefNames(), getAllRefSha(), getDescendantBranches(), getNearTags(), getRefName(), getRefs(), getRefSha(), getTagMsg(), and lookupReference().

WorkingDirInfo _wd [private]

Definition at line 179 of file git.h.

Referenced by clearRevs(), getDiffIndex(), isNothingToCommit(), isUnknownFiles(), and loadFileNames().

Domain* curDomain [private]

Definition at line 232 of file git.h.

Referenced by curContext(), Git(), and setCurContext().

QString workDir [private]

Definition at line 233 of file git.h.

Referenced by commitFiles(), formatPatch(), getBaseDir(), getHighlightedFile(), getOthersFiles(), init(), on_getHighlightedFile_eof(), on_runAsScript_eof(), removeDeleted(), run(), runAsScript(), runAsync(), startParseProc(), Annotate::startPatchProc(), and stgCommit().

QString gitDir [private]

Definition at line 234 of file git.h.

Referenced by commitFiles(), getBaseDir(), getRefs(), init(), loadFileNames(), stgCommit(), and stop().

QString filesLoadingPending [private]

Definition at line 235 of file git.h.

Referenced by loadFileNames(), on_eof(), and on_procDataReady().

QString filesLoadingCurSha [private]

Definition at line 236 of file git.h.

Referenced by loadFileNames(), on_eof(), on_procDataReady(), and stop().

QString curRange [private]

Definition at line 237 of file git.h.

Referenced by getArgs().

bool cacheNeedsUpdate [private]

Definition at line 238 of file git.h.

Referenced by clearFileNames(), getFiles(), Git(), on_procDataReady(), and stop().

bool errorReportingEnabled [private]

Definition at line 239 of file git.h.

Referenced by checkEnvironment(), getBaseDir(), getRefs(), getRefSha(), Git(), DataLoader::on_cancel(), run(), runAsync(), and userInfo().

bool isMergeHead [private]

Definition at line 240 of file git.h.

Referenced by getRefs(), Git(), and isCommittingMerge().

bool isStGIT [private]

Definition at line 241 of file git.h.

Referenced by addChunk(), applyPatchFile(), getDefCommitMsg(), getRefs(), Git(), init(), and isStGITStack().

bool isGIT [private]

Definition at line 242 of file git.h.

Referenced by getTextCodec(), Git(), and init().

bool isTextHighlighterFound [private]

Definition at line 243 of file git.h.

Referenced by checkEnvironment(), Git(), and isTextHighlighter().

bool loadingUnAppliedPatches [private]

Definition at line 244 of file git.h.

Referenced by addChunk(), Git(), init(), and on_loaded().

bool fileCacheAccessed [private]

Definition at line 245 of file git.h.

Referenced by Git(), init(), and loadFileNames().

int patchesStillToFind [private]

Definition at line 246 of file git.h.

Referenced by addChunk(), clearRevs(), and parseStGitPatches().

QString firstNonStGitPatch [private]

Definition at line 247 of file git.h.

Referenced by addChunk(), and clearRevs().

RevFileMap revsFiles [private]

Definition at line 248 of file git.h.

Referenced by clearFileNames(), clearRevs(), getAllMergeFiles(), getDiffIndex(), getFileFilter(), getFiles(), Git(), insertNewFiles(), isNothingToCommit(), loadFileNames(), on_procDataReady(), and stop().

StrVect fileNamesVec [private]

Definition at line 249 of file git.h.

Referenced by appendFileName(), clearFileNames(), filePath(), findFileIndex(), loadFileNames(), populateFileNamesMap(), and stop().

StrVect dirNamesVec [private]

Definition at line 250 of file git.h.

Referenced by appendFileName(), clearFileNames(), filePath(), findFileIndex(), loadFileNames(), populateFileNamesMap(), and stop().

QMap<QString, int> fileNamesMap [private]

Definition at line 251 of file git.h.

Referenced by appendFileName(), clearFileNames(), and populateFileNamesMap().

QMap<QString, int> dirNamesMap [private]

Definition at line 252 of file git.h.

Referenced by appendFileName(), clearFileNames(), and populateFileNamesMap().

FileHistory revData [private]

Definition at line 253 of file git.h.

Referenced by clearRevs(), getChilds(), getDescendantBranches(), getDiffIndex(), getFileFilter(), getLaneParent(), getNearTags(), getPatchFilter(), indexTree(), init(), isMainHistory(), loadFileNames(), mergeBranches(), mergeNearTags(), revLookup(), RevsView::RevsView(), startUnappliedList(), and updateDescMap().


The documentation for this class was generated from the following files:
Generated on Fri Dec 7 21:57:40 2007 for QGit by  doxygen 1.5.3