9 #include "../UI/CommitWindow.h" 66 ret = git_repository_open_ext(&repo, repoPath.String(), 0, NULL);
71 ret = git_repository_index(&index, repo);
77 git_repository_free(repo);
79 git_libgit2_shutdown();
Header file of Commit command.
virtual TrackGitWindow * GetWindow()
This returns pointer to the commit window.
virtual void Execute()
Commit command execution.
int create_commit(git_repository *repo, git_index *index, const char *message)
Creates a commit on given repo, index and message.
Commit(BString)
Commit class constructor.
TrackGitWindow * fCommitWindow
The Commit Window.
static int DoCommit(BString, BString)
This function commits to given repo with given message.
BString fRepo
The repo/directory where command is called.
The TrackGit Window class.