TrackGit
Push.h
Go to the documentation of this file.
1 
8 #ifndef _PUSH_H_
9 #define _PUSH_H_
10 
11 #include "GitCommand.h"
12 #include "../UI/PushWindow.h"
13 
14 #include <SupportKit.h>
15 
16 #include <pthread.h>
17 #include <git2.h>
18 
19 
23 struct push_params {
24  const char* path;
26 };
27 
28 
32 class Push : public GitCommand
33 {
37  BString fRepo;
42 public:
43  Push(BString);
44  virtual void Execute();
45  virtual TrackGitWindow* GetWindow();
46  static pthread_t DoPush(PushWindow*, const char*);
47 };
48 
49 #endif
PushWindow * pushWindow
Definition: Push.h:25
Parameters to pass to push thread.
Definition: Push.h:23
Push command Class.
Definition: Push.h:32
virtual TrackGitWindow * GetWindow()
This returns pointer to the Push window.
Definition: Push.cpp:43
GitCommand Class.
Definition: GitCommand.h:20
The Push window class.
Definition: PushWindow.h:22
BString fRepo
The repository path where Push option is selected.
Definition: Push.h:37
Push(BString)
Push command constructor.
Definition: Push.cpp:23
virtual void Execute()
This is where actual calls to libgit2 will go.
Definition: Push.cpp:33
static pthread_t DoPush(PushWindow *, const char *)
This spawns thread to perform push over given repo.
Definition: Push.cpp:141
The TrackGit Window class.
Header file of GitCommand.
TrackGitWindow * fPushWindow
Push Window.
Definition: Push.h:41
const char * path
Definition: Push.h:24