File
MMO\git\helpers · 1 symbol · generated 5 Oct 2026
File
File.php:9One file inside a Repository, as git status reported it.
- Namespace
MMO\git\helpers- Extends
- aEntry
Index
| addToCommit($option) | Stage the file. @return string | |
| getRepository() | ||
| mtime($options) | ||
| remove($option) | Unstage and delete the file. | |
| show($revision) | ||
| __construct($repo, $filename, $status, $origin) |
Methods6
addToCommit($option)
File.php:27Stage the file. @return string
getRepository()
File.php:22| returns | Repository | the repository the file belongs to. |
mtime($options)
File.php:42remove($option)
File.php:32Unstage and delete the file. @return string
show($revision)
File.php:37__construct($repo, $filename, $status, $origin)
File.php:16Inherited members (44)
| Constants | Declared by | Description | |
|---|---|---|---|
CAN_BE_ADDED | iEntry | ||
CAN_BE_COMMITED | iEntry | ||
COMMIT_CHANGED | iEntry | ||
ENTRY_STATUS | iEntry | ||
INDEX_ADDED | iEntry | ||
INDEX_COPIED | iEntry | ||
INDEX_DELETED | iEntry | ||
INDEX_IGNORED | iEntry | ||
INDEX_MODIFIED | iEntry | ||
INDEX_RENAMED | iEntry | ||
INDEX_UNMERGED | iEntry | ||
INDEX_UNTRACKED | iEntry | ||
MODULE_STATUS | iEntry | ||
TRACKED_CHANGES | iEntry | ||
UNKNOWN_ERROR | iEntry | ||
UNTRACKED_CHANGES | iEntry | ||
WORKTREE_ADDED | iEntry | ||
WORKTREE_COPIED | iEntry | ||
WORKTREE_DELETED | iEntry | ||
WORKTREE_IGNORED | iEntry | ||
WORKTREE_MODIFIED | iEntry | ||
WORKTREE_RENAMED | iEntry | ||
WORKTREE_UNMERGED | iEntry | ||
WORKTREE_UNTRACKED | iEntry |
| Methods | Declared by | Description | |
|---|---|---|---|
addStatus($flags) | aEntry | ||
clearStatus($flags) | aEntry | ||
debugName() | aEntry | ||
getFilename() | aEntry | ||
getOrigin() | aEntry | ||
getParent() | aEntry | ||
getStatus() | aEntry | ||
getStatusText($sep) | aEntry | ||
relativeFilename() | aEntry | The filename relative to the repository this entry belongs to. | |
setOrigin($origin) | aEntry | ||
setParent($parent) | aEntry | ||
setStatus($flags, $origin) | aEntry | Replace the status flags, and -- because git reports a rename's previous path alongside its status -- optionally the origin in the same call. | |
StatusFlags($flags) | aEntry | Read the two-character <XY> field of a git status --porcelain=2 entry. | |
StatusModuleFlags($flags) | aEntry | Read the four-character <sub> field of a git status --porcelain=2 entry (N... for a plain file, S<c><m><u> for a submodule). | |
StatusText($status, $sep) | aEntry | Convert git status constants to text. |