Guitar
Public Types | Public Member Functions | Public Attributes | List of all members
GitBranch Struct Reference

#include <GitTypes.h>

Collaboration diagram for GitBranch:
Collaboration graph
[legend]

Public Types

enum  { None , Current = 0x0001 , HeadDetachedAt = 0x0002 , HeadDetachedFrom = 0x0004 }
 

Public Member Functions

 operator bool () const
 
bool isCurrent () const
 
bool isHeadDetached () const
 

Public Attributes

QString name
 
GitHash id
 
QString remote
 
int ahead = 0
 
int behind = 0
 
int flags = 0
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
None 
Current 
HeadDetachedAt 
HeadDetachedFrom 

Member Function Documentation

◆ isCurrent()

bool GitBranch::isCurrent ( ) const
inline

◆ isHeadDetached()

bool GitBranch::isHeadDetached ( ) const
inline

◆ operator bool()

GitBranch::operator bool ( ) const
inline

Member Data Documentation

◆ ahead

int GitBranch::ahead = 0

◆ behind

int GitBranch::behind = 0

◆ flags

int GitBranch::flags = 0

◆ id

GitHash GitBranch::id

◆ name

QString GitBranch::name

◆ remote

QString GitBranch::remote

The documentation for this struct was generated from the following file: