Skip to content

Subtrees + custom error handling #400

Closed

Description

@leog

Hi there!

I was wondering if there is a plan to support subtrees commands in the near future.

Also, is there any way I can catch an error number corresponding to GIt thrown errors so I can decide what to do when errors happens?

Thanks a lot in advance.

Activity

  1. johnhaley81 commented on Feb 13, 2015

    @johnhaley81
    Collaborator

    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.

  2. leog commented on Feb 13, 2015

    @leog
    Author

    Thanks a lot for the detailed answers @johnhaley81.
    Closing this thread.
    Regards.

  3. johnhaley81 commented on Feb 13, 2015

    @johnhaley81
    Collaborator

    Anytime :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions