1. 06 Mar, 2013 4 commits
  2. 04 Jan, 2013 1 commit
  3. 03 Jan, 2013 1 commit
  4. 27 Nov, 2012 1 commit
  5. 23 Nov, 2012 1 commit
    • Reset all static variables to NULL in clar's __cleanup · 9094d30b
      Without this change, any failed assertion in the second (or a later) test
      inside a test suite has a chance of double deleting memory, resulting in
      a heap corruption. See #1096 for details.
      
      This leaves alone the test cases where we "just" use cl_git_sandbox_init()
      and cl_git_sandbox_cleanup(). These methods already take good care to not
      double delete a repository.
      
      Fixes #1096
      Sascha Cunz committed
  6. 04 Aug, 2012 1 commit
    • Update iterators for consistency across library · 5dca2010
      This updates all the `foreach()` type functions across the library
      that take callbacks from the user to have a consistent behavior.
      The rules are:
      
      * A callback terminates the loop by returning any non-zero value
      * Once the callback returns non-zero, it will not be called again
        (i.e. the loop stops all iteration regardless of state)
      * If the callback returns non-zero, the parent fn returns GIT_EUSER
      * Although the parent returns GIT_EUSER, no error will be set in
        the library and `giterr_last()` will return NULL if called.
      
      This commit makes those changes across the library and adds tests
      for most of the iteration APIs to make sure that they follow the
      above rules.
      Russell Belfer committed
  7. 21 Jun, 2012 1 commit
  8. 12 Jun, 2012 1 commit
  9. 08 Jun, 2012 1 commit
    • notes: simplify the handling of fanouts · a02e7249
       - Do not create new levels of fanout when creating notes from libgit2
       - Insert a note in an existing matching fanout
       - Remove a note from an existing fanout
       - Cleanup git_note_read, git_note_remove, git_note_foreach, git_note_create methods in order use tree structures instead of tree_oids
      yorah committed
  10. 07 Jun, 2012 1 commit
  11. 17 May, 2012 2 commits
  12. 16 May, 2012 1 commit
  13. 14 May, 2012 2 commits
  14. 02 May, 2012 1 commit
  15. 01 Apr, 2012 1 commit
  16. 23 Feb, 2012 1 commit
  17. 15 Feb, 2012 1 commit
    • Add git notes API · bf477ed4
      This commit adds basic git notes support to libgit2, namely:
      
      * git_note_read
      * git_note_message
      * git_note_oid
      * git_note_create
      * git_note_remove
      
      In the long run, we probably want to provide some convenience callback
      mechanism for merging and moving (filter-branch) notes.
      
      Signed-off-by: schu <schu-github@schulog.org>
      schu committed