1. 14 Jul, 2022 1 commit
  2. 09 Jul, 2022 1 commit
  3. 20 Jun, 2022 1 commit
  4. 23 Feb, 2022 1 commit
  5. 28 Jan, 2022 1 commit
    • indexer: use a byte array for checksum · d2458af7
      The index's checksum is not an object ID, so we should not use the
      `git_oid` type.  Use a byte array for checksum calculation and storage.
      
      Deprecate the `git_indexer_hash` function.  Callers should use the new
      `git_indexer_name` function which provides a unique packfile name.
      Edward Thomson committed
  6. 09 Nov, 2021 1 commit
  7. 17 Oct, 2021 1 commit
    • str: introduce `git_str` for internal, `git_buf` is external · f0e693b1
      libgit2 has two distinct requirements that were previously solved by
      `git_buf`.  We require:
      
      1. A general purpose string class that provides a number of utility APIs
         for manipulating data (eg, concatenating, truncating, etc).
      2. A structure that we can use to return strings to callers that they
         can take ownership of.
      
      By using a single class (`git_buf`) for both of these purposes, we have
      confused the API to the point that refactorings are difficult and
      reasoning about correctness is also difficult.
      
      Move the utility class `git_buf` to be called `git_str`: this represents
      its general purpose, as an internal string buffer class.  The name also
      is an homage to Junio Hamano ("gitstr").
      
      The public API remains `git_buf`, and has a much smaller footprint.  It
      is generally only used as an "out" param with strict requirements that
      follow the documentation.  (Exceptions exist for some legacy APIs to
      avoid breaking callers unnecessarily.)
      
      Utility functions exist to convert a user-specified `git_buf` to a
      `git_str` so that we can call internal functions, then converting it
      back again.
      Edward Thomson committed
  8. 20 Jul, 2019 1 commit
  9. 22 Feb, 2019 1 commit
  10. 22 Jan, 2019 1 commit
  11. 01 Dec, 2018 1 commit
  12. 22 Jun, 2018 2 commits
  13. 10 Jun, 2018 1 commit
  14. 23 Dec, 2017 1 commit
    • Fix unpack double free · c3514b0b
      If an element has been cached, but then the call to
      packfile_unpack_compressed() fails, the very next thing that happens is
      that its data is freed and then the element is not removed from the
      cache, which frees the data again.
      
      This change sets obj->data to NULL to avoid the double-free. It also
      stops trying to resolve deltas after two continuous failed rounds of
      resolution, and adds a test for this.
      lhchavez committed
  15. 08 Dec, 2017 1 commit
  16. 06 Dec, 2017 1 commit
  17. 19 May, 2017 1 commit
    • indexer: name pack files after trailer hash · c0e54155
      Upstream git.git has changed the way how packfiles are named.
      Previously, they were using a hash of the contained object's OIDs, which
      has then been changed to use the hash of the complete packfile instead.
      See 1190a1acf (pack-objects: name pack files after trailer hash,
      2013-12-05) in the git.git repository for more information on this
      change.
      
      This commit changes our logic to match the behavior of core git.
      Chris Hescock committed
  18. 14 Jan, 2017 1 commit
  19. 04 Jan, 2017 1 commit
  20. 02 Jan, 2017 1 commit
  21. 01 Jul, 2014 1 commit
  22. 11 Dec, 2013 1 commit
    • Test cancel from indexer progress callback · 7697e541
      This adds tests that try canceling an indexer operation from
      within the progress callback.
      
      After writing the tests, I wanted to run this under valgrind and
      had a number of errors in that situation because mmap wasn't
      working.  I added a CMake option to force emulation of mmap and
      consolidated the Amiga-specific code into that new place (so we
      don't actually need separate Amiga code now, just have to turn on
      -DNO_MMAP).
      
      Additionally, I made the indexer code propagate error codes more
      reliably than it used to.
      Russell Belfer committed
  23. 14 Nov, 2013 1 commit
  24. 07 Nov, 2013 1 commit
  25. 01 Nov, 2013 1 commit
  26. 30 Oct, 2013 1 commit
    • indexer: remove the stream infix · a6154f21
      It was there to keep it apart from the one which read in from a file on
      disk. This other indexer does not exist anymore, so there is no need for
      anything other than git_indexer to refer to it.
      
      While here, rename _add() function to _append() and _finalize() to
      _commit(). The former change is cosmetic, while the latter avoids
      talking about "finalizing", which OO languages use to mean something
      completely different.
      Carlos Martín Nieto committed
  27. 11 Oct, 2013 1 commit
  28. 04 Oct, 2013 2 commits