new local()
All function related to local repository
Methods
-
<static> branch()
-
Returns:
branch name for the current branch- Type
- Object
-
<static> branches()
-
Get all local branches name
Returns:
branches name- Type
- Object
-
<static> checkout()
-
Checkout a branch (create branch if no exist)
Returns:
1:success 0:fail- Type
- Object
-
<static> commit()
-
Get the last local commit hash
Returns:
Hash- Type
- Object
-
<static> logs()
-
Build tree of commit
Returns:
tree: {id:{parent:..., path:...},...}- Type
- Object
-
<static> parentFromHash()
-
Get the hash from a commit hash
Returns:
Hash- Type
- Object