TrackGit
Log.h
Go to the documentation of this file.
1 
8 #ifndef _LOG_H_
9 #define _LOG_H_
10 
11 #include "GitCommand.h"
12 #include "../UI/LogWindow.h"
13 
14 #include <SupportKit.h>
15 
16 #include <git2.h>
17 
21 struct log_state {
22  git_repository *repo;
23  const char *repodir;
24  git_revwalk *walker;
25  int hide;
26  int sorting;
27  int revisions;
28 };
29 
30 
34 struct log_options {
35  int show_diff;
37  int skip, limit;
39  git_time_t before;
40  git_time_t after;
41  const char *author;
42  const char *committer;
43  const char *grep;
44 };
45 
46 
50 class Log : public GitCommand {
54  BString fRepo;
59 public:
60  Log(BString);
61 
62  virtual void Execute();
63  BString GetLogText();
64  virtual TrackGitWindow* GetWindow();
65 };
66 
67 #endif
int revisions
Definition: Log.h:27
const char * author
Definition: Log.h:41
int hide
Definition: Log.h:25
const char * repodir
Definition: Log.h:23
virtual void Execute()
Log command execution.
Definition: Log.cpp:49
int show_log_size
Definition: Log.h:36
int min_parents
Definition: Log.h:38
int sorting
Definition: Log.h:26
log_options holds other command line options that affect log output
Definition: Log.h:34
The Log Window class.
Definition: LogWindow.h:20
Log(BString)
Log class Constructor.
Definition: Log.cpp:22
Log command Class.
Definition: Log.h:50
git_time_t after
Definition: Log.h:40
int max_parents
Definition: Log.h:38
BString GetLogText()
Constructs the entire Log Text for given repo.
Definition: Log.cpp:243
GitCommand Class.
Definition: GitCommand.h:20
log_state represents walker being configured while handling options
Definition: Log.h:21
int skip
Definition: Log.h:37
const char * grep
Definition: Log.h:43
git_repository * repo
Definition: Log.h:22
const char * committer
Definition: Log.h:42
LogWindow * fLogWindow
The Log Window.
Definition: Log.h:58
git_revwalk * walker
Definition: Log.h:24
git_time_t before
Definition: Log.h:39
int show_diff
Definition: Log.h:35
The TrackGit Window class.
virtual TrackGitWindow * GetWindow()
This returns pointer to the log window.
Definition: Log.cpp:36
Header file of GitCommand.
int limit
Definition: Log.h:37
BString fRepo
The repo/directory where command is called.
Definition: Log.h:54