1. 09 Jul, 2011 8 commits
    • Fix MSVC compilation warning · 38ce60f0
      nulltoken committed
    • Remove unused methods · 06c43821
      The direct-writes commit left some (slow) internals methods that
      were no longer needed. These have been removed.
      
      Also, the Reflog code was using the old `git_signature__write`, so
      it has been rewritten to use a normal buffer and the new `writebuf`
      signature writer. It's now slightly simpler and faster.
      Vicent Marti committed
    • odb: Direct writes are back · afeecf4f
      DIRECT WRITES ARE BACK AND FASTER THAN EVER. The streaming writer to the
      ODB was an overkill for the smaller objects like Commit and Tags; most
      of the streaming logic was taking too long.
      
      This commit makes Commits, Tags and Trees to be built-up in memory, and
      then written to disk in 2 pushes (header + data), instead of streaming
      everything.
      
      This is *always* faster, even for big files (since the git_filebuf class
      still does streaming writes when the memory cache overflows). This is
      also a gazillion lines of code smaller, because we don't have to
      precompute the final size of the object before starting the stream (this
      was kind of defeating the point of streaming, anyway).
      
      Blobs are still written with full streaming instead of loading them in
      memory, since this is still the fastest way.
      
      A new `git_buf` class has been added. It's missing some features, but
      it'll get there.
      Vicent Marti committed
    • posix: Portable `vsnprintf` · 2fc78e70
      Our good, lovely folks at Microsoft decided that there was no good
      reason to make `vsnprintf` compilant with the C standard, so that
      function in Windows returns -1 on overflow, instead of returning the
      actual byte count needed to write the full string.
      
      We now handle this situation more gracefully with the POSIX
      compatibility layer, by returning the needed byte size using an
      auxiliary method instead of blindly resizing the target buffer until it
      fits.
      
      This means we can now support `printf`s of any size by allocating a
      temporary buffer. That's good.
      Vicent Marti committed
    • reflog: add API to read or write a reference log · 27df4275
      So far libgit2 didn't support reference logs (reflog). Add a new
      git_reflog_* API for basic reading and writing of reflogs:
      
      * git_reflog_read
      * git_reflog_write
      * git_reflog_free
      
      Signed-off-by: schu <schu-github@schulog.org>
      schu committed
    • git_signature__write: make header optionally · 6727e300
      Signed-off-by: schu <schu-github@schulog.org>
      schu committed
  2. 08 Jul, 2011 2 commits
  3. 07 Jul, 2011 10 commits
  4. 06 Jul, 2011 16 commits
  5. 05 Jul, 2011 4 commits