TrackGit
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
Commit Class Reference

Commit command Class. More...

#include <Commit.h>

Inheritance diagram for Commit:
GitCommand

Public Member Functions

 Commit (BString)
 Commit class constructor. More...
 
virtual void Execute ()
 Commit command execution. More...
 
virtual TrackGitWindowGetWindow ()
 This returns pointer to the commit window. More...
 

Static Public Member Functions

static int DoCommit (BString, BString)
 This function commits to given repo with given message. More...
 

Private Attributes

BString fRepo
 The repo/directory where command is called. More...
 
TrackGitWindowfCommitWindow
 The Commit Window. More...
 

Detailed Description

Commit command Class.

Definition at line 18 of file Commit.h.

Constructor & Destructor Documentation

◆ Commit()

Commit::Commit ( BString  repo)

Commit class constructor.

Parameters
repoThe repo path where commit option is selected.

Definition at line 21 of file Commit.cpp.

Member Function Documentation

◆ DoCommit()

int Commit::DoCommit ( BString  repoPath,
BString  message 
)
static

This function commits to given repo with given message.

Parameters
repoPathThe repository path.
messageThe commit message.
Returns
0 or error code.

Definition at line 57 of file Commit.cpp.

◆ Execute()

void Commit::Execute ( )
virtual

Commit command execution.

Implements GitCommand.

Definition at line 32 of file Commit.cpp.

◆ GetWindow()

TrackGitWindow * Commit::GetWindow ( )
virtual

This returns pointer to the commit window.

Returns
The Commit Window;

Reimplemented from GitCommand.

Definition at line 42 of file Commit.cpp.

Member Data Documentation

◆ fCommitWindow

TrackGitWindow* Commit::fCommitWindow
private

The Commit Window.

Definition at line 26 of file Commit.h.

◆ fRepo

BString Commit::fRepo
private

The repo/directory where command is called.

Definition at line 22 of file Commit.h.


The documentation for this class was generated from the following files: