Guitar
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
GitFileStatus Class Reference

#include <GitTypes.h>

Collaboration diagram for GitFileStatus:
Collaboration graph
[legend]

Classes

struct  Data
 

Public Types

enum class  Code : unsigned int {
  Unknown , Ignored , Untracked , NotUpdated = 0x10000000 ,
  Staged_ = 0x20000000 , UpdatedInIndex , AddedToIndex , DeletedFromIndex ,
  RenamedInIndex , CopiedInIndex , Unmerged_ = 0x40000000 , Unmerged_BothDeleted ,
  Unmerged_AddedByUs , Unmerged_DeletedByThem , Unmerged_AddedByThem , Unmerged_DeletedByUs ,
  Unmerged_BothAdded , Unmerged_BothModified , Tracked_ = 0xf0000000
}
 

Public Member Functions

bool isStaged () const
 
bool isUnmerged () const
 
bool isTracked () const
 
void parse (std::string const &text)
 
 GitFileStatus ()=default
 
 GitFileStatus (std::string const &text)
 
Code code () const
 
int code_x () const
 
int code_y () const
 
bool isDeleted () const
 
std::string path1 () const
 
std::string path2 () const
 
std::string rawpath1 () const
 
std::string rawpath2 () const
 

Static Public Member Functions

static Code parseFileStatusCode (char x, char y)
 

Public Attributes

struct GitFileStatus::Data data
 

Member Enumeration Documentation

◆ Code

enum GitFileStatus::Code : unsigned int
strong
Enumerator
Unknown 
Ignored 
Untracked 
NotUpdated 
Staged_ 
UpdatedInIndex 
AddedToIndex 
DeletedFromIndex 
RenamedInIndex 
CopiedInIndex 
Unmerged_ 
Unmerged_BothDeleted 
Unmerged_AddedByUs 
Unmerged_DeletedByThem 
Unmerged_AddedByThem 
Unmerged_DeletedByUs 
Unmerged_BothAdded 
Unmerged_BothModified 
Tracked_ 

Constructor & Destructor Documentation

◆ GitFileStatus() [1/2]

GitFileStatus::GitFileStatus ( )
default

◆ GitFileStatus() [2/2]

GitFileStatus::GitFileStatus ( std::string const &  text)
inline
Here is the call graph for this function:

Member Function Documentation

◆ code()

Code GitFileStatus::code ( ) const
inline

◆ code_x()

int GitFileStatus::code_x ( ) const
inline

◆ code_y()

int GitFileStatus::code_y ( ) const
inline

◆ isDeleted()

bool GitFileStatus::isDeleted ( ) const
inline
Here is the call graph for this function:

◆ isStaged()

bool GitFileStatus::isStaged ( ) const
inline

◆ isTracked()

bool GitFileStatus::isTracked ( ) const
inline

◆ isUnmerged()

bool GitFileStatus::isUnmerged ( ) const
inline

◆ parse()

void GitFileStatus::parse ( std::string const &  text)
Here is the call graph for this function:

◆ parseFileStatusCode()

GitFileStatus::Code GitFileStatus::parseFileStatusCode ( char  x,
char  y 
)
static

◆ path1()

std::string GitFileStatus::path1 ( ) const
inline

◆ path2()

std::string GitFileStatus::path2 ( ) const
inline

◆ rawpath1()

std::string GitFileStatus::rawpath1 ( ) const
inline

◆ rawpath2()

std::string GitFileStatus::rawpath2 ( ) const
inline

Member Data Documentation

◆ data

struct GitFileStatus::Data GitFileStatus::data

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