Constructor
new GitWorkingTree(directory, git_directory, git_branch, git_commit_id, git_config, mainopt, linkedopt)
constructor
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
directory |
string | Git working tree directory | |
git_directory |
string | Git directory | |
git_branch |
string | Tracked Git branch | |
git_commit_id |
string | SHA1 ID of commit | |
git_config |
GitConfig | Git config | |
main |
string |
<optional> |
directory of main Git working tree |
linked |
Array.<GitWorkingTree> |
<optional> |
linked Git working trees |
- Source:
Methods
(static) from(obj) → {GitWorkingTree}
Build a GitWorkingTree instance from an object, convenient for transportation with a transport protocol, that looks like a GitWorkingTree instance
Parameters:
Name | Type | Description |
---|---|---|
obj |
Object | an object |
- Source:
Returns:
an instance of GitWorkingTree
- Type
- GitWorkingTree