Skip to content
Snippets Groups Projects
  1. Apr 22, 2012
  2. Jan 27, 2012
  3. Dec 29, 2011
  4. Dec 23, 2011
    • Jeff King's avatar
      support large packfiles with index v2 · 7b5c49ef
      Jeff King authored
      Grit has known about the "v2" pack index format for a while.
      However, it never actually handled the extended offsets that
      we get when indexing packfiles that are larger than 2
      gigabytes.
      
      When an object is at an offset smaller than 2G, its byte
      offset into the packfile is placed in the first table of
      4-byte offset values. If it's past that, then the MSB is set
      on its offset in the 4-byte table, and the rest of the
      4-byte integer specifies an offset into an 8-byte table that
      follows.
      
      With this patch, grit should handle arbitrarily large packs
      (limited only by the pack format itself).
      
      A few notes on the patch itself:
      
        - I unpack using two "N" formats instead of "Q>", because
          "Q>" is not available in ruby < 1.9.3
      
        - No automated test is included, because you need a
          packfile that is greater than 2G. I did test it by hand.
      7b5c49ef
  5. Aug 20, 2011
    • Vicent Marti's avatar
      100% Git-compliant actor creation · ff015074
      Vicent Marti authored
      Some more tweaks here:
      
      	- Do not use `strftime`, because it's not assured
      	to be cross-platform
      
      	- Use C-like string formatting for Great Glory
      	When Printing Numbers.
      
      	- Always print an email address -- even if we don't
      	have one. A missing email field will crash `fsck`.
      ff015074
  6. Aug 17, 2011
  7. Jul 10, 2011
  8. Jul 01, 2011
  9. Jun 22, 2011
  10. Jun 15, 2011
    • Ryan Tomayko's avatar
      ruby rev_list passes --verify to native rev_parse in fallback · b0135670
      Ryan Tomayko authored
      Otherwise, the git-rev-parse will return whatever is given as an arg
      when the ref doesn't exist. e.g.,
      
        $ git rev-parse some-bad-ref
        some-bad-ref
        fatal: ambiguous argument 'some-bad-ref': unknown revision or path not in the working tree.
      
      The error message is on stderr and git-rev-parse exits with non-zero
      but the ref name is still output.
      
      The problem here is that code often calls rev_list like:
      
          git.rev_list({}, "some-bad-ref")
      
      Then rev_list tries to convert some-bad-ref to a SHA1, gets back the
      ref string, but continues on anyway. This eventually results in the
      rev_list failing to look up the object because it assumes its a SHA1
      when its really a ref string.
      b0135670
  11. Jun 10, 2011
  12. Jun 09, 2011
  13. Jun 08, 2011
  14. Jun 01, 2011
  15. May 30, 2011
Loading