1. 13 Feb, 2015 3 commits
  2. 09 Dec, 2014 1 commit
  3. 21 Nov, 2014 1 commit
  4. 08 Nov, 2014 1 commit
    • odb: hardcode the empty blob and tree · e1ac0101
      git hardocodes these as objects which exist regardless of whether they
      are in the odb and uses them in the shell interface as a way of
      expressing the lack of a blob or tree for one side of e.g. a diff.
      
      In the library we use each language's natural way of declaring a lack of
      value which makes a workaround like this unnecessary. Since git uses it,
      it does however mean each shell application would need to perform this
      check themselves.
      
      This makes it common work across a range of applications and an issue
      with compatibility with git, which fits right into what the library aims
      to provide.
      
      Thus we introduce the hard-coded empty blob and tree in the odb
      frontend. These hard-coded objects are checked for before going to the
      backends, but after the cache check, which means the second time they're
      used, they will be treated as normal cached objects instead of creating
      new ones.
      Carlos Martín Nieto committed
  5. 23 May, 2014 1 commit
  6. 02 May, 2014 1 commit
  7. 21 Apr, 2014 1 commit
  8. 21 Mar, 2014 1 commit
  9. 10 Mar, 2014 1 commit
    • Fix a number of git_odb_exists_prefix bugs · 89499078
      The git_odb_exists_prefix API was not dealing correctly when a
      later backend returned GIT_ENOTFOUND even if an earlier backend
      had found the object.
      
      Additionally, the unit tests were not properly exercising the API
      and had a couple mistakes in checking the results.
      
      Lastly, since the backends are not expected to behavior correctly
      unless all bytes of the short id are zero except for the prefix,
      this makes the ODB prefix APIs explicitly clear out the extra
      bytes so the user doesn't have to be as careful.
      Russell Belfer committed
  10. 06 Mar, 2014 1 commit
  11. 05 Mar, 2014 2 commits
  12. 04 Mar, 2014 1 commit
  13. 13 Jan, 2014 1 commit
  14. 04 Nov, 2013 1 commit
  15. 22 Oct, 2013 1 commit
  16. 04 Oct, 2013 1 commit
  17. 19 Sep, 2013 1 commit
  18. 17 Sep, 2013 3 commits
    • Merge git_buf and git_buffer · a9f51e43
      This makes the git_buf struct that was used internally into an
      externally available structure and eliminates the git_buffer.
      
      As part of that, some of the special cases that arose with the
      externally used git_buffer were blended into the git_buf, such as
      being careful about git_buf objects that may have a NULL ptr and
      allowing for bufs with a valid ptr and size but zero asize as a
      way of referring to externally owned data.
      Russell Belfer committed
    • Extend public filter api with filter lists · 2a7d224f
      This moves the git_filter_list into the public API so that users
      can create, apply, and dispose of filter lists.  This allows more
      granular application of filters to user data outside of libgit2
      internals.
      
      This also converts all the internal usage of filters to the public
      APIs along with a few small tweaks to make it easier to use the
      public git_buffer stuff alongside the internal git_buf.
      Russell Belfer committed
    • Create public filter object and use it · 85d54812
      This creates include/sys/filter.h with a basic definition of a
      git_filter and then converts the internal code to use it.  There
      are related internal objects (git_filter_list) that we will want
      to publish at some point, but this is a first step.
      Russell Belfer committed
  19. 11 Sep, 2013 1 commit
  20. 07 Sep, 2013 1 commit
  21. 06 Sep, 2013 1 commit
  22. 04 Sep, 2013 1 commit
    • odb: Move the auto refresh logic to the pack backend · b1a6c316
      Previously, `git_object_read()`, `git_object_read_prefix()` and
      `git_object_exists()` were implementing an auto refresh logic. When the
      expected object couldn't be found in any backend, a call to
      `git_odb_refresh()` was triggered and the lookup was once again performed
      against all backends.
      
      This commit removes this auto-refresh logic from the odb layer and pushes
      it down into the pack-backend (as it's the only one currently exposing
      a `refresh()` endpoint).
      nulltoken committed
  23. 30 Aug, 2013 1 commit
  24. 17 Aug, 2013 1 commit
  25. 16 Aug, 2013 1 commit
  26. 15 Aug, 2013 2 commits
  27. 12 Aug, 2013 1 commit
  28. 15 Jul, 2013 1 commit
  29. 12 Jun, 2013 1 commit
  30. 07 Jun, 2013 1 commit
  31. 31 May, 2013 1 commit
  32. 03 May, 2013 1 commit
  33. 01 May, 2013 1 commit
  34. 29 Apr, 2013 1 commit