1. 26 Jan, 2023 1 commit
  2. 25 Jan, 2023 8 commits
  3. 24 Jan, 2023 3 commits
  4. 20 Jan, 2023 9 commits
  5. 05 Jan, 2023 1 commit
    • Use `git_clone__submodule` to avoid file checks in workdir · ae7a0a63
      `git_clone` checks for existence of (non-empty) directories that would clash with what is about to be cloned.
      
      This is problematic when cloning submodules since they make sense in the context of a parent module, so they should not use the current working dir.
      
      Since in `git_submodule_update` we clone the submodule only when it is not yet initialized we do not need to perform directory checks.
      Aleš Bizjak committed
  6. 28 Nov, 2022 1 commit
  7. 25 Nov, 2022 3 commits
  8. 23 Nov, 2022 5 commits
  9. 19 Nov, 2022 1 commit
  10. 18 Nov, 2022 3 commits
  11. 10 Nov, 2022 1 commit
  12. 04 Nov, 2022 3 commits
  13. 03 Nov, 2022 1 commit
    • 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