1. 14 Jan, 2014 1 commit
  2. 13 Nov, 2013 1 commit
  3. 16 Aug, 2013 1 commit
  4. 11 Jun, 2013 1 commit
  5. 10 Jun, 2013 1 commit
    • Reorganize diff and add basic diff driver · 114f5a6c
      This is a significant reorganization of the diff code to break it
      into a set of more clearly distinct files and to document the new
      organization.  Hopefully this will make the diff code easier to
      understand and to extend.
      
      This adds a new `git_diff_driver` object that looks of diff driver
      information from the attributes and the config so that things like
      function content in diff headers can be provided.  The full driver
      spec is not implemented in the commit - this is focused on the
      reorganization of the code and putting the driver hooks in place.
      
      This also removes a few #includes from src/repository.h that were
      overbroad, but as a result required extra #includes in a variety
      of places since including src/repository.h no longer results in
      pulling in the whole world.
      Russell Belfer committed
  6. 02 Jun, 2013 1 commit
  7. 15 May, 2013 2 commits
  8. 18 Apr, 2013 1 commit
  9. 20 Feb, 2013 3 commits
  10. 21 Jan, 2013 1 commit
  11. 08 Jan, 2013 1 commit
  12. 03 Dec, 2012 1 commit
  13. 30 Nov, 2012 1 commit
  14. 04 Sep, 2012 1 commit
  15. 28 Aug, 2012 1 commit
  16. 11 Jul, 2012 1 commit
  17. 06 Jun, 2012 1 commit
  18. 17 May, 2012 1 commit
  19. 15 May, 2012 1 commit
  20. 17 Apr, 2012 1 commit
  21. 21 Mar, 2012 1 commit
  22. 20 Mar, 2012 1 commit
  23. 13 Feb, 2012 1 commit
  24. 08 Dec, 2011 1 commit
    • Use git_buf for path storage instead of stack-based buffers · 97769280
      This converts virtually all of the places that allocate GIT_PATH_MAX
      buffers on the stack for manipulating paths to use git_buf objects
      instead.  The patch is pretty careful not to touch the public API
      for libgit2, so there are a few places that still use GIT_PATH_MAX.
      
      This extends and changes some details of the git_buf implementation
      to add a couple of extra functions and to make error handling easier.
      
      This includes serious alterations to all the path.c functions, and
      several of the fileops.c ones, too.  Also, there are a number of new
      functions that parallel existing ones except that use a git_buf
      instead of a stack-based buffer (such as git_config_find_global_r
      that exists alongsize git_config_find_global).
      
      This also modifies the win32 version of p_realpath to allocate whatever
      buffer size is needed to accommodate the realpath instead of hardcoding
      a GIT_PATH_MAX limit, but that change needs to be tested still.
      Russell Belfer committed
  25. 29 Oct, 2011 1 commit
  26. 12 Oct, 2011 1 commit
    • signature: don't blow up trying to parse names containing '>' · 6f2856f3
      When trying to find the end of an email, instead of starting at the
      beginning of the signature, we start at the end of the name (after the
      first '<').
      
      This brings libgit2 more in line with Git's behavior when reading out
      existing signatures.
      
      However, note that Git does not allow names like these through the
      usual porcelain; instead, it silently strips any '>' characters it
      sees.
      Brodie Rao committed
  27. 22 Sep, 2011 1 commit
  28. 18 Sep, 2011 1 commit
    • Cleanup legal data · bb742ede
      1. The license header is technically not valid if it doesn't have a
      copyright signature.
      
      2. The COPYING file has been updated with the different licenses used in
      the project.
      
      3. The full GPLv2 header in each file annoys me.
      Vicent Marti committed
  29. 16 Sep, 2011 1 commit
  30. 13 Sep, 2011 1 commit
    • Changes to allow examples/*.c to compile and link. This required on · 0251733e
      change to the signature of an API function (git_signature_new).
      Also, the examples/general.c had a lot of unchecked return values
      which were addresed with a couple of macros. The resulting example
      still does not work correctly but at least now it fails with an
      error message rather than not compiling or dumping core. Example
      runtime issues may be addressed in a later commit.
      David Boyce committed
  31. 30 Aug, 2011 1 commit
  32. 03 Aug, 2011 1 commit
    • signature: adjust API to return error codes · 63396a39
      git_signature_new() and git_signature_now() currently don't return error
      codes. Change the API to return error codes and not pointers to let the
      user handle errors properly.
      
      Signed-off-by: schu <schu-github@schulog.org>
      schu committed
  33. 02 Aug, 2011 1 commit
  34. 10 Jul, 2011 1 commit
  35. 09 Jul, 2011 3 commits
    • 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