1. 14 Dec, 2021 1 commit
    • refs: Speed up packed lookups. · ad7a51d8
      Currently ref lookups require loading the entire packed-refs file into
      a hashmap in memory. For repos with large numbers of refs this can be
      painfully slow.
      
      This patch replaces the existing lookup code and instead mmap()'s the
      packed-refs file and performs a binary search to locate the ref entry.
      Git uses a similiar approach.
      
      The old hash table codepath is still used for unsorted packed-refs files.
      
      This patch also fixes a minor bug where the "peeled" trait is never
      parsed correctly from the packed-refs header.
      Colin Stolley committed
  2. 11 Nov, 2021 1 commit
    • update remote/insteadof tests · 7891660a
      we want to test:
      - an anonymous repo (a url)
      - a named repo with a url
      - a named repo with a url and pushurl
      and for each of these matching configuration:
      - only insteadOf
      - only pushInsteadOf
      - both insteadOf and pushInsteadOf
      
      this change adds test cases for all of these combinations.
      Martin Kühl committed
  3. 18 Jul, 2018 1 commit
    • tree: accept null ids in existing trees when updating · 2dff7e28
      When we add entries to a treebuilder we validate them. But we validate even
      those that we're adding because they exist in the base tree. This disables
      using the normal mechanisms on these trees, even to fix them.
      
      Keep track of whether the entry we're appending comes from an existing tree and
      bypass the name and id validation if it's from existing data.
      Carlos Martín Nieto committed
  4. 31 May, 2015 1 commit
  5. 14 Nov, 2013 1 commit