1. 28 Oct, 2017 1 commit
    • Remy Suen's avatar
      Expose JavaScript function name in thrown error · 63f2dac2
      Remy Suen authored
      When an error happens in libgit2, NodeGit will wrap the and expose
      the error code and message to be consumed via the JavaScript API.
      However, this information is often insufficient given the
      asynchronous nature of NodeGit and it may at times be unclear as to
      which JavaScript function caused the error on the libgit2 side. By
      exposing an 'errorFunction' property string that includes the name of
      the JavaScript function in the error, debugging should now be a lot
      easier as clients will now be able to quickly identify which
      JavaScript function in a long promise chain was the source of an
      Signed-off-by: default avatarRemy Suen <remy.suen@gmail.com>
  2. 31 Jan, 2017 1 commit
    • Remy Suen's avatar
      Expose libgit2 error code to clients when a promise fails · 8f911102
      Remy Suen authored
      When an API function of libgit2 fails within a promise, the promise is
      rejected with a JavaScript Error object that wraps the recorded error
      message in giterr_last(). However, the original non-zero return code of
      the API function is not exposed to the caller of the NodeGit API. This
      means that NodeGit clients cannot easily identify what the cause of an
      error is outside of parsing the Error object's message. This is
      an extremely volatile way of determining the cause as libgit2 may
      choose to alter the wording of the message at any time.
      To solve the problem above, the returned JavaScript Error object now
      esposes the libgit2 error code via its `errno` property.
  3. 11 Aug, 2016 2 commits
  4. 11 May, 2016 1 commit
  5. 18 Feb, 2016 1 commit
  6. 09 Feb, 2016 2 commits
  7. 05 Feb, 2016 1 commit
  8. 04 Feb, 2016 1 commit
    • Tyler Wanek's avatar
      Manage diffs better · 9d548eca
      Tyler Wanek authored
      Only find similar if there is an added entry
      Free diffs when we are done with them.
  9. 03 Feb, 2016 2 commits
  10. 02 Feb, 2016 1 commit
  11. 18 Dec, 2015 1 commit
  12. 06 Nov, 2015 1 commit
    • John Haley's avatar
      Fix error detection in `fastWalk` · 27711042
      John Haley authored
      When I wrote `RevWalk.prototype.fastWalk` I assumed that `git_err_last` would not
      be null when `GIT_ITEROVER` was the result. I was wrong :(
  13. 05 Nov, 2015 1 commit
    • John Haley's avatar
      Add `RevWalk.prototype.fastWalk` · 48210407
      John Haley authored
      This adds the manually written C++ function `fastWalk` the `RevWalk` class.
      I also added in a system the let the developer add in optimized C++ code that will be added to
      the library in a similar way that we wrap the libgit2 library. Basically, the developer just defines the 
      API for the function to wrap and then just writes the C++ implementation of the functions. The
      generator classes take care of the rest.