Class: File
Class Name | File |
---|---|
Superclass | Object |
File | src/models/file.coffee |
Description
Represents a file and its status.
Constructs a new instance of File.
Argument | Description |
---|---|
path | The file path as String. |
repo | The repository as PromisedGit. |
mode | The porcelain status as String. |
Update the porcelain status.
Argument | Description |
---|---|
mode | The porcelain status as String. |
Test if the file is added.
Return Values |
---|
Returns a Boolean |
Test if the file is copied.
Return Values |
---|
Returns a Boolean |
Test if the file is deleted.
Return Values |
---|
Returns a Boolean |
Test if the file is modified.
Return Values |
---|
Returns a Boolean |
Test if the file is renamed.
Return Values |
---|
Returns a Boolean |
Test if the file is staged.
Return Values |
---|
Returns a Boolean |
Test if the file is unstaged.
Return Values |
---|
Returns a Boolean |
Test if the file is untracked.
Return Values |
---|
Returns a Boolean |