1. 23 Feb, 2022 1 commit
  2. 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
  3. 09 Nov, 2021 1 commit
  4. 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
  5. 18 May, 2021 1 commit
  6. 23 May, 2020 1 commit
  7. 07 Feb, 2020 1 commit
  8. 18 Jul, 2019 1 commit
  9. 22 Jan, 2019 1 commit
  10. 01 Dec, 2018 2 commits
  11. 06 Jul, 2018 1 commit
  12. 10 Jun, 2018 1 commit
  13. 28 Feb, 2016 1 commit
  14. 12 Feb, 2016 1 commit
  15. 03 Nov, 2015 1 commit
  16. 21 Oct, 2015 1 commit
  17. 12 Sep, 2015 1 commit
  18. 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
  19. 30 Aug, 2015 1 commit
  20. 29 Aug, 2015 1 commit
  21. 26 Jun, 2015 2 commits
  22. 23 Jun, 2015 1 commit
  23. 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
  24. 16 Jun, 2015 1 commit
  25. 12 Jun, 2015 1 commit
  26. 02 Jun, 2015 1 commit
  27. 28 May, 2015 1 commit
  28. 27 May, 2014 1 commit
  29. 16 May, 2014 1 commit
  30. 02 May, 2014 7 commits
  31. 25 Mar, 2014 1 commit
    • Update behavior for untracked sub-repos · d3bc95fd
      When a directory containing a .git directory (or even just a plain
      gitlink) was found, libgit2 was going out of its way to treat it
      specially.  This seemed like it was necessary because the diff
      code was not originally emulating Git's behavior for untracked
      directories correctly (i.e. scanning for ignored vs untracked items
      inside).  Now that libgit2 diff mimics Git's untracked directory
      behavior, the special handling for contained Git repos is actually
      incorrect and this commit rips it out.
      Russell Belfer committed
  32. 22 Jan, 2014 1 commit
    • Drop git_patch_to_str · c05cd792
      It's hard or even impossible to correctly free the string buffer
      allocated by git_patch_to_str in some circumstances. Drop the function
      so people have to use git_patch_to_buf instead - git_buf has a dedicated
      destructor.
      Nicolas Hake committed