|
TrackGit
|
Switch Branch command Class. More...
#include <SwitchBranch.h>
Public Member Functions | |
| SwitchBranch (BString) | |
| SwitchBranch class constructor. More... | |
| virtual void | Execute () |
| SwitchBranch command execution. More... | |
| virtual TrackGitWindow * | GetWindow () |
| This returns pointer to the Switch Branch window. More... | |
Static Public Member Functions | |
| static int | DoSwitchBranch (BString, BString) |
| This function creates a new branch in repo with given name. More... | |
| static int | GetBranches (BString, vector< BString > &) |
| This function gets all the branche names in given repository. More... | |
Private Attributes | |
| BString | fRepo |
| The repo/directory where command is called. More... | |
| TrackGitWindow * | fSwitchBranchWindow |
| The Switch Branch Window. More... | |
Switch Branch command Class.
Definition at line 20 of file SwitchBranch.h.
| SwitchBranch::SwitchBranch | ( | BString | repo | ) |
SwitchBranch class constructor.
| repo | The repo path where Switch Branch option is selected. |
Definition at line 19 of file SwitchBranch.cpp.
|
static |
This function creates a new branch in repo with given name.
| repoPath | The repository path. |
| branchName | The name of new branch. |
Definition at line 87 of file SwitchBranch.cpp.
|
virtual |
SwitchBranch command execution.
Implements GitCommand.
Definition at line 30 of file SwitchBranch.cpp.
|
static |
This function gets all the branche names in given repository.
| repoPath | The repo path. |
| branches | The list of branch names. |
Definition at line 42 of file SwitchBranch.cpp.
|
virtual |
This returns pointer to the Switch Branch window.
Reimplemented from GitCommand.
Definition at line 72 of file SwitchBranch.cpp.
|
private |
The repo/directory where command is called.
Definition at line 24 of file SwitchBranch.h.
|
private |
The Switch Branch Window.
Definition at line 28 of file SwitchBranch.h.
1.8.14