1. 15 Jun, 2009 2 commits
  2. 05 Jun, 2009 11 commits
  3. 30 Mar, 2009 3 commits
  4. 20 Mar, 2009 2 commits
  5. 18 Mar, 2009 7 commits
  6. 11 Feb, 2009 5 commits
    • Correct some comments in readloose tests · 04c9c16e
      Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
      Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
      Ramsay Jones committed
    • Add the git_odb_exists() object query function · 82324ac1
      This function determines if the given object can be found
      in the object database. At present, only the local object
      database is searched.
      
      Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
      Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
      Ramsay Jones committed
    • Rearrange some code to improve clarity · e9f5e877
      In particular, the test for z-stream input completion
      (zs.avail_in != 0) logically belongs with the test for
      the Z_STREAM_END stream status. This is also consistent
      with the identical check in finish_inflate().
      
      Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
      Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
      Ramsay Jones committed
    • Check for error returns from inflateInit() · 236e7579
      At present, it is sufficient to ensure that an error return
      from inflateInit() is not ignored. Most error returns, like
      Z_VERSION_ERROR and Z_STREAM_ERROR, indicate programming or
      build errors. These errors could, perhaps, be handled with
      simple asserts. However, for a Z_MEM_ERROR, we may want to
      perform some further error handling in the future.
      
      Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
      Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
      Ramsay Jones committed
    • Fix a potential memory leak · c94eb4aa
      In particular, neglecting to call inflateEnd() along various
      codepaths in the inflate_tail() routine, would result in the
      failure to release zlib internal state.
      
      Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
      Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
      Ramsay Jones committed
  7. 01 Feb, 2009 4 commits
  8. 28 Jan, 2009 4 commits
  9. 03 Jan, 2009 2 commits
    • Add the binary delta apply algorithm for pack style deltas · c23841c8
      The git__delta_apply() function can be used to apply a Git style
      delta, such as those used in pack files or in git patch files,
      to recover the original object stream.
      
      Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
      Shawn O. Pearce committed
    • Precompute the fanout decoding and the oid offset in a pack-*.idx · bed3229b
      The fanout table is fairly commonly accessed, we need to read it
      twice for each object we lookup in any given pack file.  Most of
      the processors running Git are running in little-endian mode, as
      they are variants of the x86 platform, so reading the fanout is
      a costly operation as we need to convert from network byte order
      to local byte order.  By decoding the fanout table into a malloc
      obtained buffer we can save these 2 decode operations per lookup
      and make search go more quickly.
      
      This also cleans up the initialization of the search functions
      by cutting out a few instructions, saving a small amount of time.
      
      Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
      Shawn O. Pearce committed