You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| Parameters | Type |
| --- | --- | --- |
| reason | String | Reason why the working tree is being locked |
Returns
Number
0 on success, non-zero otherwise
Worktree#name SyncExperimental
varstring=worktree.name();
Returns
String
Worktree#path SyncExperimental
varstring=worktree.path();
Returns
String
Worktree#prune SyncExperimental
varresult=worktree.prune(opts);
| Parameters | Type |
| --- | --- | --- |
| opts | WorktreePruneOptions | Specifies which checks to override. See git_worktree_is_prunable. May be NULL |
Returns
Number
0 or an error code
Worktree#unlock SyncExperimental
varresult=worktree.unlock();
Returns
Number
0 on success, 1 if worktree was not locked, error-code