1. 15 Aug, 2013 1 commit
  2. 29 May, 2013 1 commit
  3. 21 May, 2013 1 commit
  4. 11 May, 2013 1 commit
    • refs: remove the OID/SYMBOLIC filtering · 2b562c3a
      Nobody should ever be using anything other than ALL at this level, so
      remove the option altogether.
      
      As part of this, git_reference_foreach_glob is now implemented in the
      frontend using an iterator. Backends will later regain the ability of
      doing the glob filtering in the backend.
      Carlos Martín Nieto committed
  5. 30 Apr, 2013 2 commits
  6. 29 Apr, 2013 1 commit
  7. 22 Apr, 2013 4 commits
  8. 21 Apr, 2013 1 commit
    • Move odb_backend implementors stuff into git2/sys · 83cc70d9
      This moves some of the odb_backend stuff that is related to the
      internals of an odb_backend implementation into include/git2/sys.
      
      Some of the stuff related to streaming I left in include/git2
      because it seemed like it would be reasonably needed by a normal
      user who wanted to stream objects into and out of the ODB.
      
      Also, I added APIs for traversing the list of backends so that
      some of the tests would not need to access ODB internals.
      Russell Belfer committed
  9. 31 Mar, 2013 1 commit
  10. 07 Mar, 2013 1 commit
  11. 08 Jan, 2013 1 commit
  12. 03 Dec, 2012 1 commit
  13. 01 Dec, 2012 2 commits
  14. 30 Nov, 2012 1 commit
  15. 27 Nov, 2012 2 commits
  16. 17 Nov, 2012 1 commit
  17. 02 Nov, 2012 1 commit
    • tags: Fixed the tag parser to correctly treat the message field as optional. · 6bb9fea1
      This fix makes libgit2 capable of parsing annotated tag objects that lack
      the optional message/description field.
      Previously, libgit2 treated this field as mandatory and raised a tag_error on
      such tags. However, the message field is optional.
      
      An example of such a tag is refs/tags/v2.6.16.31-rc1 in Linux:
      
      $ git cat-file tag refs/tags/v2.6.16.31-rc1
      object afaa018cefb6af63befef1df7d8febaae904434f
      type commit
      tag v2.6.16.31-rc1
      tagger Adrian Bunk <bunk@stusta.de> 1162716505 +0100
      $
      Erik van Zijst committed
  18. 09 Oct, 2012 1 commit
  19. 22 Sep, 2012 1 commit
  20. 27 Aug, 2012 1 commit
    • Make git_object_peel a bit smarter · d8057a5b
      This expands the types of peeling that `git_object_peel` knows
      how to do to include TAG -> BLOB peeling, and makes the errors
      slightly more consistent depending on the situation.  It also
      adds a new special behavior where peeling to ANY will peel until
      the object type changes (e.g. chases TAGs to a non-TAG).
      
      Using this expanded peeling, this replaces peeling code that was
      embedded in `git_tag_peel` and `git_reset`.
      Russell Belfer committed
  21. 19 Jun, 2012 1 commit
    • message: Expose git_message_prettify() · 743a4b3b
      git_commit() and git_tag() no longer prettify the
      message by default. This has to be taken care of
      by the caller.
      
      This has the nice side effect of putting the
      caller in position to actually choose to strip
      the comments or not.
      nulltoken committed
  22. 17 May, 2012 2 commits
  23. 07 May, 2012 1 commit
  24. 03 May, 2012 1 commit
  25. 26 Apr, 2012 1 commit
  26. 17 Apr, 2012 1 commit
  27. 10 Apr, 2012 1 commit
  28. 06 Mar, 2012 1 commit
    • error-handling: Repository · cb8a7961
      This also includes droping `git_buf_lasterror` because it makes no sense
      in the new system. Note that in most of the places were it has been
      dropped, the code needs cleanup. I.e. GIT_ENOMEM is going away, so
      instead it should return a generic `-1` and obviously not throw
      anything.
      Vicent Martí committed
  29. 22 Feb, 2012 1 commit
  30. 13 Feb, 2012 1 commit
  31. 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
  32. 26 Nov, 2011 2 commits
    • Rename all `_close` methods · 45e79e37
      There's no difference between `_free` and `_close` semantics: keep
      everything with the same name to avoid confusions.
      Vicent Marti committed
    • repository: Change ownership semantics · 9462c471
      The ownership semantics have been changed all over the library to be
      consistent. There are no more "borrowed" or duplicated references.
      
      Main changes:
      
      	- `git_repository_open2` and `3` have been dropped.
      
      	- Added setters and getters to hotswap all the repository owned
      	objects:
      
      		`git_repository_index`
      		`git_repository_set_index`
      		`git_repository_odb`
      		`git_repository_set_odb`
      		`git_repository_config`
      		`git_repository_set_config`
      		`git_repository_workdir`
      		`git_repository_set_workdir`
      
      	Now working directories/index files/ODBs and so on can be
      	hot-swapped after creating a repository and between operations.
      
      	- All these objects now have proper ownership semantics with
      	refcounting: they all require freeing after they are no longer
      	needed (the repository always keeps its internal reference).
      
      	- Repository open and initialization has been updated to keep in
      	mind the configuration files. Bare repositories are now always
      	detected, and a default config file is created on init.
      
      	- All the tests affected by these changes have been dropped from the
      	old test suite and ported to the new one.
      Vicent Marti committed