1. 29 Mar, 2019 1 commit
    • tests: config: make sure to clean up after each test · fa4505e6
      The config::global test suite creates various different directories and
      files which are being populated with pretend-global files.
      Unfortunately, the tests do not clean up after themselves, which may
      cause subsequent tests to fail due to cruft left behind.
      
      Fix this by always removing created directories and their contents.
      Patrick Steinhardt committed
  2. 06 Mar, 2019 1 commit
  3. 05 Mar, 2019 1 commit
  4. 02 Mar, 2019 2 commits
  5. 28 Feb, 2019 2 commits
  6. 27 Feb, 2019 3 commits
  7. 25 Feb, 2019 2 commits
  8. 23 Feb, 2019 2 commits
    • odb: provide a free function for custom backends · 459ac856
      Custom backends can allocate memory when reading objects and providing
      them to libgit2.  However, if an error occurs in the custom backend
      after the memory has been allocated for the custom object but before
      it's returned to libgit2, the custom backend has no way to free that
      memory and it must be leaked.
      
      Provide a free function that corresponds to the alloc function so that
      custom backends have an opportunity to free memory before they return an
      error.
      Edward Thomson committed
    • odb: rename git_odb_backend_malloc for consistency · 790aae77
      The `git_odb_backend_malloc` name is a system function that is provided
      for custom ODB backends and allows them to allocate memory for an ODB
      object in the read callback.  This is important so that libgit2 can
      later free the memory used by an ODB object that was read from the
      custom backend.
      
      However, the name _suggests_ that it actually allocates a
      `git_odb_backend`.  It does not; rename it to make it clear that it
      actually allocates backend _data_.
      Edward Thomson committed
  9. 22 Feb, 2019 11 commits
  10. 21 Feb, 2019 12 commits
  11. 20 Feb, 2019 3 commits