TrackGit
CreateBranch.h
Go to the documentation of this file.
1 
8 #ifndef _CREATE_BRANCH_H_
9 #define _CREATE_BRANCH_H_
10 
11 #include "GitCommand.h"
12 
13 #include <SupportKit.h>
14 
18 class CreateBranch : public GitCommand {
22  BString fRepo;
27 public:
28  CreateBranch(BString);
29 
30  virtual void Execute();
31  virtual TrackGitWindow* GetWindow();
32  static int DoCreateBranch(BString, BString);
33 };
34 
35 #endif
Create Branch command Class.
Definition: CreateBranch.h:18
TrackGitWindow * fCreateBranchWindow
The Create Branch Window.
Definition: CreateBranch.h:26
GitCommand Class.
Definition: GitCommand.h:20
static int DoCreateBranch(BString, BString)
This function creates a new branch in repo with given name.
virtual void Execute()
CreateBranch command execution.
CreateBranch(BString)
CreateBranch class constructor.
BString fRepo
The repo/directory where command is called.
Definition: CreateBranch.h:22
The TrackGit Window class.
virtual TrackGitWindow * GetWindow()
This returns pointer to the Create Branch window.
Header file of GitCommand.