Permalink
Commits on Dec 9, 2010
  1. test patch methods

    technoweenie committed Dec 9, 2010
Commits on Nov 24, 2010
  1. typo

    rtomayko committed Nov 24, 2010
  2. fix relative alternates paths

    Relative paths in a <repo>.git/objects/info/alternates file are to
    be expanded relative to the <repo>.git/objects directory.
    Previously, they were expanded relative to the <repo>.git directory.
    
    The current code checks in both locations for backward compatibility
    with grit <= 2.3.0 but I'd rather rip it out completely.
    rtomayko committed Nov 24, 2010
Commits on Nov 23, 2010
Commits on Nov 1, 2010
Commits on Oct 28, 2010
  1. Merge branch 'perf'

    technoweenie committed Oct 28, 2010
Commits on Oct 22, 2010
  1. update history

    technoweenie committed Oct 22, 2010
  2. allow Index#commit to specify separate authors and committers with co…

    …rrect timezones for the timestamps
    technoweenie committed Oct 22, 2010
Commits on Oct 21, 2010
Commits on Oct 16, 2010
  1. use String#<< instead of String#+ in Git#sh and Git#wild_sh

    This speeds things up considerably when output is large. Especially
    so under some versions of Rails (AS) where String#+ is made to be
    extremely slow.
    
    With 500K blob, before:
    
        $ ruby bench-string-concat.rb 12044a76034e894c2412aea9c20508b5c8277784
        blob: 12044a76034e894c2412aea9c20508b5c8277784
        size: 499855
                                            user     system      total        real
        native cat_file                11.030000   9.140000  20.230000 ( 21.182163)
        ruby cat_file                   0.040000   0.020000   0.060000 (  0.061033)
    
    ActiveSupport makes it even worse:
    
        $ ruby -ractive_support bench-string-concat.rb 12044a76034e894c2412aea9c20508b5c8277784
        blob: 12044a76034e894c2412aea9c20508b5c8277784
        size: 499855
                                            user     system      total        real
        native cat_file                15.830000   9.570000  25.470000 ( 26.286903)
        ruby cat_file                   0.050000   0.020000   0.070000 (  0.073557)
    
    With this commit applied (using String#<< instead of String#+):
    
        $ ruby bench-string-concat.rb 12044a76034e894c2412aea9c20508b5c8277784
        blob: 12044a76034e894c2412aea9c20508b5c8277784
        size: 499855
                                            user     system      total        real
        native cat_file                 0.310000   0.440000   0.800000 (  1.765703)
        ruby cat_file                   0.040000   0.020000   0.060000 (  0.064426)
    
    The bench-string-concat.rb script is here:
    
    <https://gist.github.com/e749138b066ed9d81fbe>
    rtomayko committed Oct 16, 2010
Commits on Oct 11, 2010
  1. update history

    technoweenie committed Oct 11, 2010
Commits on Oct 8, 2010
  1. update history

    technoweenie committed Oct 8, 2010
  2. explicitly make the Grit data classes lazily loaded (instead of every…

    … single ruby object). Also, add attr_writer(:lazy_source) for lazy objects
    technoweenie committed Oct 8, 2010
Commits on Sep 29, 2010
  1. Release 2.3.0

    committed Sep 29, 2010
Commits on Aug 31, 2010
  1. Update Readme.

    committed Aug 31, 2010
  2. Ruby 1.9 compatibility

    * Add current directory to path for tests because 1.9 does not
    * Explicity open file in binary mode to get around encoding issues
    cehoffman committed with Aug 14, 2010
  3. Add Repo#init.

    committed Aug 31, 2010
  4. Fixed gemspec homepage

    itspriddle committed with Aug 19, 2010