TrackGit
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
CreateBranch Class Reference

Create Branch command Class. More...

#include <CreateBranch.h>

Inheritance diagram for CreateBranch:
GitCommand

Public Member Functions

 CreateBranch (BString)
 CreateBranch class constructor. More...
 
virtual void Execute ()
 CreateBranch command execution. More...
 
virtual TrackGitWindowGetWindow ()
 This returns pointer to the Create Branch window. More...
 

Static Public Member Functions

static int DoCreateBranch (BString, BString)
 This function creates a new branch in repo with given name. More...
 

Private Attributes

BString fRepo
 The repo/directory where command is called. More...
 
TrackGitWindowfCreateBranchWindow
 The Create Branch Window. More...
 

Detailed Description

Create Branch command Class.

Definition at line 18 of file CreateBranch.h.

Constructor & Destructor Documentation

◆ CreateBranch()

CreateBranch::CreateBranch ( BString  repo)

CreateBranch class constructor.

Parameters
repoThe repo path where Create Branch option is selected.

Definition at line 20 of file CreateBranch.cpp.

Member Function Documentation

◆ DoCreateBranch()

int CreateBranch::DoCreateBranch ( BString  repoPath,
BString  branchName 
)
static

This function creates a new branch in repo with given name.

Parameters
repoPathThe repository path.
branchNameThe name of new branch.
Returns
0 or error code.

Definition at line 56 of file CreateBranch.cpp.

◆ Execute()

void CreateBranch::Execute ( )
virtual

CreateBranch command execution.

Implements GitCommand.

Definition at line 31 of file CreateBranch.cpp.

◆ GetWindow()

TrackGitWindow * CreateBranch::GetWindow ( )
virtual

This returns pointer to the Create Branch window.

Returns
The Create Branch Window;

Reimplemented from GitCommand.

Definition at line 41 of file CreateBranch.cpp.

Member Data Documentation

◆ fCreateBranchWindow

TrackGitWindow* CreateBranch::fCreateBranchWindow
private

The Create Branch Window.

Definition at line 26 of file CreateBranch.h.

◆ fRepo

BString CreateBranch::fRepo
private

The repo/directory where command is called.

Definition at line 22 of file CreateBranch.h.


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