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
Nodegit just wraps libgit2 which itself doesn't have any direct subtree commands and it doesn't look like it will any time soon.
However with that being said you might be able to mimic the script of commands a git subtree does using what we have wrapped from libgit2.
As for your second question if a method results in an error we'll send up the string message but currently we don't send back the error number. Note that the number on the error will only refer to the class of error that happened. Some async methods will have a return value for an error but there isn't any real documentation on what those errors are or they are the results of a callback which are passed back up the original method.
Activity
johnhaley81 commentedon Feb 13, 2015
Nodegit just wraps libgit2 which itself doesn't have any direct subtree commands and it doesn't look like it will any time soon.
However with that being said you might be able to mimic the script of commands a
git subtreedoes using what we have wrapped from libgit2.As for your second question if a method results in an error we'll send up the string message but currently we don't send back the error number. Note that the number on the error will only refer to the class of error that happened. Some async methods will have a return value for an error but there isn't any real documentation on what those errors are or they are the results of a callback which are passed back up the original method.
leog commentedon Feb 13, 2015
Thanks a lot for the detailed answers @johnhaley81.
Closing this thread.
Regards.
johnhaley81 commentedon Feb 13, 2015
Anytime :)