Status command Class.
More...
#include <Status.h>
Status command Class.
Definition at line 39 of file Status.h.
◆ Status()
Status::Status |
( |
BString |
repo, |
|
|
BString |
dirPath |
|
) |
| |
Status class Constructor.
- Parameters
-
repo | The repo where the command is called. |
dirPath | The current directory where Status is selected. |
Definition at line 22 of file Status.cpp.
◆ Execute()
◆ GetBranchText()
BString * Status::GetBranchText |
( |
git_repository * |
repo, |
|
|
StatusWindow * |
window |
|
) |
| |
|
static |
Constructs Branch text for current repo.
- Parameters
-
- Returns
- The Branch text.
Definition at line 280 of file Status.cpp.
◆ GetStatusText()
BString * Status::GetStatusText |
( |
| ) |
|
Constructs the entire Status Text along with current branch for given repo.
- Parameters
-
dirPath | The current path to check status for. |
- Returns
- The entire status text to display.
Definition at line 313 of file Status.cpp.
◆ GetStatusTextUtil()
BString * Status::GetStatusTextUtil |
( |
git_status_list * |
status, |
|
|
StatusWindow * |
window |
|
) |
| |
|
static |
Constructs Status text for current repo.
- Parameters
-
status | The status info output of git_status_list_new. |
- Returns
- The Status text.
Print index changes.
Print workdir changes to tracked files.
With GIT_STATUS_OPT_INCLUDE_UNMODIFIED
(not used in this example) index_to_workdir
may not be NULL
even if there are no differences, in which case it will be a GIT_DELTA_UNMODIFIED
.
Print out the output since we know the file has some changes
Print untracked files.
Print ignored files.
Definition at line 63 of file Status.cpp.
◆ GetWindow()
This returns pointer to the status window.
- Returns
- The pointer to the Status Window.
Reimplemented from GitCommand.
Definition at line 37 of file Status.cpp.
◆ fDirPath
The current directory where Status option is selected.
Definition at line 47 of file Status.h.
◆ fRepo
The repo/directory where command is called.
Definition at line 43 of file Status.h.
◆ fStatusWindow
The documentation for this class was generated from the following files: