1. 09 Dec, 2012 1 commit
  2. 07 Dec, 2012 1 commit
    • tree: relax the filemode parser · f1c75b94
      There are many different broken filemodes in the wild so we need to
      protect against them and give something useful up the chain. Don't
      fail when reading a tree from the ODB but normalize the mode as best
      we can.
      
      As 664 is no longer a mode that we consider to be valid and gets
      normalized to 644, we can stop accepting it in the treebuilder. The
      library won't expose it to the user, so any invalid modes are a bug.
      Carlos Martín Nieto committed
  3. 05 Dec, 2012 4 commits
  4. 04 Dec, 2012 2 commits
  5. 03 Dec, 2012 4 commits
  6. 02 Dec, 2012 2 commits
    • pack: add git_packfile_resolve_header · 44f9f547
      To paraphrase @peff:
      
      You can get both size and type from a packed object reasonably cheaply.
      If you have:
      
      * An object that is not a delta; both type and size are available in the
        packfile header.
      * An object that is a delta. The packfile type will be OBJ_*_DELTA, and
        you have to resolve back to the base to find the real type. That means
        potentially a lot of packfile index lookups, but each one is
        relatively cheap. For the size, you inflate the first few bytes of the
        delta, whose header will tell you the resulting size of applying the
        delta to the base.
      
      For simplicity, we just decompress the whole delta for now.
      David Michael Barr committed
  7. 01 Dec, 2012 10 commits
  8. 30 Nov, 2012 16 commits