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

Init command Class. More...

#include <Init.h>

Inheritance diagram for Init:
GitCommand

Public Member Functions

 Init (BString)
 Init command constructor. More...
 
virtual void Execute ()
 Init command excution. More...
 
- Public Member Functions inherited from GitCommand
virtual TrackGitWindowGetWindow ()
 This is used to get pointer to the window (if any). More...
 

Static Public Member Functions

static int InitRepo (BString)
 Initializes empty repo in given directory. More...
 

Private Attributes

BString fDirPath
 The current directory where Init option is selected. More...
 

Detailed Description

Init command Class.

Definition at line 18 of file Init.h.

Constructor & Destructor Documentation

◆ Init()

Init::Init ( BString  dirPath)

Init command constructor.

Parameters
dirPathThe directory where Init is selected.

Definition at line 20 of file Init.cpp.

Member Function Documentation

◆ Execute()

void Init::Execute ( )
virtual

Init command excution.

Initializes empty git repository in given directory.

Implements GitCommand.

Definition at line 45 of file Init.cpp.

◆ InitRepo()

int Init::InitRepo ( BString  dirPath)
static

Initializes empty repo in given directory.

Parameters
dirPathThe given directory.
Returns
0 or error code.

Definition at line 34 of file Init.cpp.

Member Data Documentation

◆ fDirPath

BString Init::fDirPath
private

The current directory where Init option is selected.

Definition at line 23 of file Init.h.


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