11 #include <InterfaceKit.h> 50 if (msg->FindString(
"repo", &repo) == B_OK)
54 be_app->PostMessage(B_QUIT_REQUESTED);
58 vector<char*> selected;
63 if (msg->FindInt32(
"addon_item_id", &itemId) != B_OK)
73 window->Activate(
true);
83 gitCommand =
new Clone(repo, dirPath);
86 gitCommand =
new Init(dirPath);
89 gitCommand =
new Status(repo, dirPath);
93 gitCommand =
new Add(dirPath, selected);
96 gitCommand =
new Commit(repo);
99 gitCommand =
new Pull(repo);
102 gitCommand =
new Push(repo);
114 gitCommand =
new Log(repo);
#define APP_SIGN
The Application signature.
Header file of Commit command.
virtual TrackGitWindow * GetWindow()
This is used to get pointer to the window (if any).
Header file of Clone command.
Header file of Init command.
Header file of Push command.
void extract_selected_paths(const BMessage *msg, vector< char *> &selected)
Get selected files.
Create Branch command Class.
Header file of Log command.
BString extract_current_directory(const BMessage *msg)
Get current directory.
TrackGitApp()
TrackGitApp Constructor.
Header file of ShowConflicts command.
Header file of Create Branch command.
map< BString, TrackGitWindow * > fRunningCommands
The map of running commands to their repo.
Header file of Switch Branch command.
Header file of TrackGit App.
Header file of Add command.
Header file of Pull command.
The TrackGit Window class.
Switch Branch command Class.
BString get_root_of_repo(BString dirPath)
Get the root of repo of current directory.
Header file of GitCommand.
virtual void MessageReceived(BMessage *)
The handler to receive messages.
Header file of TrackGit window.
virtual void Execute()=0
This is where actual calls to libgit2 will go.
Header file of Status command.
ShowConflicts command Class.