1. 24 Jan, 2023 2 commits
  2. 20 Jan, 2023 9 commits
  3. 28 Nov, 2022 1 commit
  4. 25 Nov, 2022 3 commits
  5. 23 Nov, 2022 5 commits
  6. 19 Nov, 2022 1 commit
  7. 18 Nov, 2022 3 commits
  8. 10 Nov, 2022 1 commit
  9. 04 Nov, 2022 3 commits
  10. 03 Nov, 2022 4 commits
    • commit-graph: only verify csum on git_commit_graph_open(). · 2c4eb83e
      It is expensive to compute the sha1 of the entire commit-graph file each
      time we open it. Git only does this if it is re-writing the file.
      
      This patch will only verify the checksum when calling the external API
      git_commit_graph_open(), which explicitly says it opens and verifies
      the commit graph in the documentation.
      
      For internal library calls, we call git_commit_graph_get_file(), which
      mmaps the commit-graph file in read-only mode. Therefore it is safe to
      skip the validation check there.
      
      Tests were added to check that the validation works in the happy path,
      and prevents us from opening the file when validation fails.
      
      (Note from Derrick Stolee: This patch was applied internally at GitHub
      after we recognized the performance impact it had during an upgrade of
      libgit2. The original author left the company before we remembered to
      send it upstream.)
      
      Signed-off-by: Derrick Stolee <derrickstolee@github.com>
      Colin Stolley committed
    • Missing dispose · a8b18f15
      Julian Mesa committed
    • Fix leak in git_tag_create_from_buffer · c7e8de17
      If the tag already exists and we are not forcing overwrite we need to free ref_name buffer before return the "tag already exists" error.
      Julian Mesa committed
  11. 02 Nov, 2022 1 commit
  12. 20 Oct, 2022 1 commit
    • http: Update httpclient options when reusing an existing connection. · f8683b7a
      Httpclient internally stores a copy of the certificate_check callback and
      payload. When connecting via HTTPS, and if the server sends back
      "Connection: close" after the first request, the following request would
      attempt to re-use the httpclient and call the (now outdated) callback. In
      particular for pygit2 this is a problem, since callbacks / payloads are only
      valid for the duration of a libgit2 call, leading to a ffi.from_handle()
      error and crashing the Python interpreter.
      Sebastian Lackner committed
  13. 18 Oct, 2022 1 commit
  14. 07 Oct, 2022 1 commit
  15. 01 Oct, 2022 2 commits
  16. 21 Sep, 2022 1 commit
  17. 19 Sep, 2022 1 commit
    • cmake: provide empty experimental.h for non-cmake users · c1172468
      Not everybody builds libgit2 using cmake; provide an `experimental.h`
      with no experiments configured for those that do not. To support this,
      we also now create compile definitions for experimental functionality,
      to supplant that empty `experimental.h`. cmake will continue to generate
      the proper `experimental.h` file for use with `make install`.
      Edward Thomson committed