SVCS - English Documentation
Loading...
Searching...
No Matches
svcs::core::BranchManager::Branch Struct Reference

Structure to hold the metadata for a single branch. More...

#include <BranchManager.hxx>

Public Member Functions

 Branch ()
 Default constructor.
 Branch (std::string name, std::string head_commit, bool is_current=false)
 Constructor for the Branch structure.

Public Attributes

std::string name
 The unique name of the branch.
std::string head_commit
 The hash of the latest commit on this branch.
bool is_current
 Flag indicating if this is the currently active branch.

Detailed Description

Structure to hold the metadata for a single branch.

Constructor & Destructor Documentation

◆ Branch()

svcs::core::BranchManager::Branch::Branch ( std::string name,
std::string head_commit,
bool is_current = false )
inline

Constructor for the Branch structure.

Parameters
nameThe branch name.
head_commitThe hash of the commit this branch points to.
is_currentFlag indicating if the branch is active.

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