TrackGit
Pull.h
Go to the documentation of this file.
1 
8 #ifndef _PULL_H_
9 #define _PULL_H_
10 
11 #include "GitCommand.h"
12 #include "../UI/PullWindow.h"
13 
14 #include <SupportKit.h>
15 
16 #include <pthread.h>
17 #include <git2.h>
18 
19 
23 struct fetch_payload {
24  char branch[100];
25  git_oid branch_oid;
26 };
27 
31 struct pull_params {
32  const char* path;
34 };
35 
36 
40 class Pull : public GitCommand
41 {
45  BString fRepo;
50 public:
51  Pull(BString);
52  virtual void Execute();
53  virtual TrackGitWindow* GetWindow();
54  static pthread_t DoPull(PullWindow*, const char*);
55 };
56 
57 #endif
Pull(BString)
Pull command constructor.
Definition: Pull.cpp:23
const char * path
Definition: Pull.h:32
Payload to search for merge branch.
Definition: Pull.h:23
virtual void Execute()
This is where actual calls to libgit2 will go.
Definition: Pull.cpp:33
virtual TrackGitWindow * GetWindow()
This returns pointer to the Pull window.
Definition: Pull.cpp:43
static pthread_t DoPull(PullWindow *, const char *)
This spawns thread to perform pull over given repo.
Definition: Pull.cpp:195
GitCommand Class.
Definition: GitCommand.h:20
BString fRepo
The repository path where Pull option is selected.
Definition: Pull.h:45
char branch[100]
Definition: Pull.h:24
PullWindow * pullWindow
Definition: Pull.h:33
TrackGitWindow * fPullWindow
Pull Window.
Definition: Pull.h:49
git_oid branch_oid
Definition: Pull.h:25
The TrackGit Window class.
Pull command Class.
Definition: Pull.h:40
Header file of GitCommand.
Parameters to pass to pull thread.
Definition: Pull.h:31
The Pull window class.
Definition: PullWindow.h:22