TrackGit
SwitchBranch.h
Go to the documentation of this file.
1 
8 #ifndef _SWITCH_BRANCH_H_
9 #define _SWITCH_BRANCH_H_
10 
11 #include "GitCommand.h"
12 
13 #include <SupportKit.h>
14 
15 #include <vector>
16 
20 class SwitchBranch : public GitCommand {
24  BString fRepo;
29 public:
30  SwitchBranch(BString);
31 
32  virtual void Execute();
33  virtual TrackGitWindow* GetWindow();
34  static int DoSwitchBranch(BString, BString);
35  static int GetBranches(BString, vector<BString>&);
36 };
37 
38 #endif
virtual TrackGitWindow * GetWindow()
This returns pointer to the Switch Branch window.
static int GetBranches(BString, vector< BString > &)
This function gets all the branche names in given repository.
GitCommand Class.
Definition: GitCommand.h:20
virtual void Execute()
SwitchBranch command execution.
static int DoSwitchBranch(BString, BString)
This function creates a new branch in repo with given name.
TrackGitWindow * fSwitchBranchWindow
The Switch Branch Window.
Definition: SwitchBranch.h:28
SwitchBranch(BString)
SwitchBranch class constructor.
The TrackGit Window class.
BString fRepo
The repo/directory where command is called.
Definition: SwitchBranch.h:24
Switch Branch command Class.
Definition: SwitchBranch.h:20
Header file of GitCommand.