1. 18 Nov, 2022 1 commit
  2. 10 Nov, 2022 1 commit
  3. 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
  4. 18 Oct, 2022 1 commit
  5. 21 Sep, 2022 1 commit
  6. 19 Sep, 2022 14 commits
  7. 16 Sep, 2022 3 commits
  8. 06 Sep, 2022 1 commit
  9. 31 Aug, 2022 1 commit
  10. 14 Aug, 2022 1 commit
  11. 10 Aug, 2022 1 commit
  12. 08 Aug, 2022 1 commit
  13. 30 Jul, 2022 1 commit
    • Don't fail the whole clone if you can't find a default branch · bf80cb63
      In commit 6bb35878 ("clone: set refs/remotes/origin/HEAD to default
      branch when branch is specified, attempt 2") libgit2 was changed to set
      the default remote branch when one was copied.
      
      But it makes update_head_to_branch() return an error if the origin
      doesn't even *have* a HEAD in the first place, since
      git_remote_default_branch() will fail.
      
      That's entirely wrong, and means that you cannot do "git_clone()" of a
      particular branch on a remote repository when that remote doesn't have a
      default branch at all.
      
      So don't set the error code.
      
      Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
      Linus Torvalds committed
  14. 22 Jul, 2022 2 commits
  15. 19 Jul, 2022 1 commit
  16. 15 Jul, 2022 1 commit
  17. 14 Jul, 2022 8 commits