1. 19 Apr, 2016 1 commit
  2. 08 Sep, 2015 1 commit
  3. 13 May, 2015 3 commits
  4. 13 Mar, 2015 1 commit
  5. 03 Mar, 2015 1 commit
    • Remove the signature from ref-modifying functions · 659cf202
      The signature for the reflog is not something which changes
      dynamically. Almost all uses will be NULL, since we want for the
      repository's default identity to be used, making it noise.
      
      In order to allow for changing the identity, we instead provide
      git_repository_set_ident() and git_repository_ident() which allow a user
      to override the choice of signature.
      Carlos Martín Nieto committed
  6. 19 Nov, 2014 1 commit
    • fetch: clear the connection data on close · 1ca61bdc
      When we fetch twice with the same remote object, we did not properly
      clear the connection flags, so we would leak state from the last
      connection.
      
      This can cause the second fetch with the same remote object to fail if
      using a HTTP URL where the server redirects to HTTPS, as the second
      fetch would see `use_ssl` set and think the initial connection wanted to
      downgrade the connection.
      Carlos Martín Nieto committed
  7. 08 Nov, 2014 1 commit
  8. 30 Sep, 2014 1 commit
  9. 21 May, 2014 1 commit
  10. 03 Mar, 2014 1 commit
  11. 05 Feb, 2014 1 commit
  12. 31 Dec, 2013 1 commit
  13. 11 Dec, 2013 1 commit
    • Remove converting user error to GIT_EUSER · 25e0b157
      This changes the behavior of callbacks so that the callback error
      code is not converted into GIT_EUSER and instead we propagate the
      return value through to the caller.  Instead of using the
      giterr_capture and giterr_restore functions, we now rely on all
      functions to pass back the return value from a callback.
      
      To avoid having a return value with no error message, the user
      can call the public giterr_set_str or some such function to set
      an error message.  There is a new helper 'giterr_set_callback'
      that functions can invoke after making a callback which ensures
      that some error message was set in case the callback did not set
      one.
      
      In places where the sign of the callback return value is
      meaningful (e.g. positive to skip, negative to abort), only the
      negative values are returned back to the caller, obviously, since
      the other values allow for continuing the loop.
      
      The hardest parts of this were in the checkout code where positive
      return values were overloaded as meaningful values for checkout.
      I fixed this by adding an output parameter to many of the internal
      checkout functions and removing the overload.  This added some
      code, but it is probably a better implementation.
      
      There is some funkiness in the network code where user provided
      callbacks could be returning a positive or a negative value and
      we want to rely on that to cancel the loop.  There are still a
      couple places where an user error might get turned into GIT_EUSER
      there, I think, though none exercised by the tests.
      Russell Belfer committed
  14. 14 Nov, 2013 1 commit
  15. 11 Nov, 2013 1 commit
    • remote: make _ls return the list directly · 359dce72
      The callback-based method of listing remote references dates back to the
      beginning of the network code's lifetime, when we didn't know any
      better.
      
      We need to keep the list around for update_tips() after disconnect() so
      let's make use of this to simply give the user a pointer to the array so
      they can write straightforward code instead of having to go through a
      callback.
      Carlos Martín Nieto committed
  16. 08 Nov, 2013 1 commit
  17. 07 Nov, 2013 1 commit
  18. 02 Oct, 2013 1 commit
  19. 24 Sep, 2013 1 commit
    • Disconnect path string to preserve after redirect · eb0ff130
      The subtransport path was relying on pointing to data owned by
      the remote which meant that after a redirect, the updated path
      was getting lost for future requests.  This updates the http
      transport to strdup the path and maintain its own lifetime.
      
      This also pulls responsibility for parsing the URL back into the
      http transport and isolates the functions that parse and free that
      connection data so that they can be reused between the initial
      parsing and the redirect parsing.
      Russell Belfer committed
  20. 15 Apr, 2013 1 commit
  21. 05 Feb, 2013 2 commits
  22. 02 Jan, 2013 2 commits
  23. 20 Dec, 2012 2 commits
  24. 14 Dec, 2012 2 commits
  25. 13 Dec, 2012 2 commits
  26. 05 Dec, 2012 1 commit
  27. 01 Dec, 2012 1 commit
  28. 30 Nov, 2012 2 commits
  29. 28 Nov, 2012 3 commits
  30. 27 Nov, 2012 1 commit