Guitar
Classes | Public Member Functions | Private Member Functions | List of all members
GitBasicSession Class Reference

#include <GitBasicSession.h>

Inheritance diagram for GitBasicSession:
Inheritance graph
[legend]
Collaboration diagram for GitBasicSession:
Collaboration graph
[legend]

Classes

struct  Commands
 

Public Member Functions

 GitBasicSession (Commands const &cmds)
 
bool is_connected () const
 
bool isValidWorkingCopy (QString const &dir) const
 
std::optional< GitResultexec_git (QString const &arg, Option const &opt)
 
bool remove (const QString &path)
 
virtual std::optional< std::vector< GitFileItem > > ls (char const *path)
 
virtual std::optional< std::vector< char > > readfile (char const *path)
 
- Public Member Functions inherited from AbstractGitSession
 AbstractGitSession ()
 
virtual ~AbstractGitSession ()
 
void clearCommandCache ()
 
Infogitinfo ()
 
Info const & gitinfo () const
 
GitCachecache ()
 
QString workingDir () const
 
void set_command_cache (GitCommandCache const &cc)
 

Private Member Functions

QString gitCommand () const
 
QString sshCommand () const
 

Additional Inherited Members

- Protected Member Functions inherited from AbstractGitSession
void insertIntoCommandCache (QString const &key, std::vector< char > const &value)
 
std::vector< char > * findFromCommandCache (QString const &key)
 

Constructor & Destructor Documentation

◆ GitBasicSession()

GitBasicSession::GitBasicSession ( Commands const &  cmds)
Here is the call graph for this function:

Member Function Documentation

◆ exec_git()

std::optional< GitResult > GitBasicSession::exec_git ( QString const &  arg,
Option const &  opt 
)
virtual

Implements AbstractGitSession.

Here is the call graph for this function:

◆ gitCommand()

QString GitBasicSession::gitCommand ( ) const
private
Here is the call graph for this function:

◆ is_connected()

bool GitBasicSession::is_connected ( ) const
virtual

Implements AbstractGitSession.

Here is the call graph for this function:

◆ isValidWorkingCopy()

bool GitBasicSession::isValidWorkingCopy ( QString const &  dir) const
virtual

Implements AbstractGitSession.

Here is the call graph for this function:

◆ ls()

std::optional< std::vector< GitFileItem > > GitBasicSession::ls ( char const *  path)
virtual

Reimplemented from AbstractGitSession.

◆ readfile()

std::optional< std::vector< char > > GitBasicSession::readfile ( char const *  path)
virtual

Reimplemented from AbstractGitSession.

Here is the call graph for this function:

◆ remove()

bool GitBasicSession::remove ( const QString &  path)
virtual

Implements AbstractGitSession.

Here is the call graph for this function:

◆ sshCommand()

QString GitBasicSession::sshCommand ( ) const
private
Here is the call graph for this function:

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