1. 10 Jun, 2023 1 commit
  2. 13 Feb, 2023 1 commit
  3. 14 Jul, 2022 1 commit
  4. 20 Jun, 2022 1 commit
  5. 06 Apr, 2022 1 commit
  6. 04 Apr, 2022 1 commit
  7. 23 Feb, 2022 1 commit
  8. 28 Jan, 2022 1 commit
    • index: use a byte array for checksum · 11ef76a9
      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_index_checksum` function without a replacement.  This
      is an abstraction that callers should not care about (and indeed do not
      seem to be using).
      
      Remove the unused `git_index__changed_relative_to` function.
      Edward Thomson committed
  9. 09 Nov, 2021 1 commit
  10. 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
  11. 18 May, 2021 1 commit
  12. 23 May, 2020 1 commit
  13. 07 Feb, 2020 1 commit
  14. 18 Jul, 2019 1 commit
  15. 22 Jan, 2019 1 commit
  16. 01 Dec, 2018 2 commits
  17. 06 Jul, 2018 1 commit
  18. 10 Jun, 2018 1 commit
  19. 28 Feb, 2016 1 commit
  20. 12 Feb, 2016 1 commit
  21. 03 Nov, 2015 1 commit
  22. 21 Oct, 2015 1 commit
  23. 12 Sep, 2015 1 commit
  24. 31 Aug, 2015 1 commit
    • iterator: saner pathlist matching for idx iterator · d53c8880
      Some nicer refactoring for index iteration walks.
      
      The index iterator doesn't binary search through the pathlist space,
      since it lacks directory entries, and would have to binary search
      each index entry and all its parents (eg, when presented with an index
      entry of `foo/bar/file.c`, you would have to look in the pathlist for
      `foo/bar/file.c`, `foo/bar` and `foo`).  Since the index entries and the
      pathlist are both nicely sorted, we walk the index entries in lockstep
      with the pathlist like we do for other iteration/diff/merge walks.
      Edward Thomson committed
  25. 30 Aug, 2015 1 commit
  26. 29 Aug, 2015 1 commit
  27. 26 Jun, 2015 2 commits
  28. 23 Jun, 2015 1 commit
  29. 22 Jun, 2015 1 commit
    • diff: check files with the same or newer timestamps · ff475375
      When a file on the workdir has the same or a newer timestamp than the
      index, we need to perform a full check of the contents, as the update of
      the file may have happened just after we wrote the index.
      
      The iterator changes are such that we can reach inside the workdir
      iterator from the diff, though it may be better to have an accessor
      instead of moving these structs into the header.
      Carlos Martín Nieto committed
  30. 16 Jun, 2015 1 commit
  31. 12 Jun, 2015 1 commit
  32. 02 Jun, 2015 1 commit
  33. 28 May, 2015 1 commit
  34. 27 May, 2014 1 commit
  35. 16 May, 2014 1 commit
  36. 02 May, 2014 3 commits