Permalink
Commits on Mar 23, 2011
Commits on Mar 14, 2011
  1. add head method to repo and resolve method to references

    tclem authored and vmg committed Mar 8, 2011
    includes associated unit tests
Commits on Mar 8, 2011
  1. fix unit tests (mini spec gc issue), add ref tests

    tclem committed Mar 8, 2011
    gc was wiping out unit tests b/c an old version of mini spec was being
    used. reference test contexted was added. reference api changed to
    return string from type getter.
Commits on Mar 1, 2011
  1. Wrap git_reference

    vmg committed Mar 1, 2011
    Rugged now fully wraps the 0.7.0 API
    
    Signed-off-by: Vicent Marti <tanoku@gmail.com>
Commits on Feb 28, 2011
  1. Fix GC for git objects

    vmg committed Feb 28, 2011
    Use the new repo destructor method in 0.7 that doesn't run garbage
    collection on the objects, and reclaim them ourselves.
    
    Signed-off-by: Vicent Marti <tanoku@gmail.com>
  2. Update to the 0.7.0 API

    vmg committed Feb 28, 2011
    Rugged now compiles -- the references API is still not in place.
    
    Signed-off-by: Vicent Marti <tanoku@gmail.com>
Commits on Feb 9, 2011
  1. Remove all loose objects created by the tests

    vmg committed Feb 9, 2011
    Signed-off-by: Vicent Marti <tanoku@gmail.com>
  2. Update to libgit2 0.4.0

    vmg committed Feb 9, 2011
    Signed-off-by: Vicent Marti <tanoku@gmail.com>
Commits on Feb 7, 2011
  1. Wrap the new Tree#clear method

    vmg committed Feb 7, 2011
    Signed-off-by: Vicent Marti <tanoku@gmail.com>
  2. Fix compilation for libgit2 v0.3.0

    vmg committed Feb 7, 2011
    Signed-off-by: Vicent Marti <tanoku@gmail.com>
  3. Complain when rake-compiler is missing

    vmg committed Feb 7, 2011
    Signed-off-by: Vicent Marti <tanoku@gmail.com>
Commits on Jan 29, 2011
  1. Wrap git_tree_add_entry

    vmg committed Jan 29, 2011
    Signed-off-by: Vicent Marti <tanoku@gmail.com>
  2. Remove useless file check on hashing test

    vmg committed Jan 29, 2011
    Signed-off-by: Vicent Marti <tanoku@gmail.com>
Commits on Jan 10, 2011
  1. Wrap git_repository_init()

    vmg committed Jan 10, 2011
    Wrapped as 'Repository#init_at' (class method) since the 'init' method
    is already used by Ruby.
    
    Signed-off-by: Vicent Marti <tanoku@gmail.com>
  2. Turn the Encoding defines into inline functions

    vmg committed Jan 10, 2011
    Defines with blocks returning a value are not pretty, and I'm
    not sure if MSVC can handle them.
    
    They are now inline functions, so we get some pretty type checking.
    Also, they have been renamed from LG2_STR_NEW() to lower case names.
    
    All the cases that used #ifdefs to handle returning raw, unencoded ASCII
    strings have been factorized into a 'rugged_str_ascii()' method.
    
    Signed-off-by: Vicent Marti <tanoku@gmail.com>
Commits on Dec 29, 2010
Commits on Dec 19, 2010
  1. Rename Rugged::Person to Rugged::Signature

    vmg committed Dec 19, 2010
    Keep up to date with libgit2 API changes. Timezone parsing for
    signatures is now working properly.
    
    Signed-off-by: Vicent Marti <tanoku@gmail.com>
Commits on Dec 17, 2010
  1. Explode if libgit2 or zlib are missing

    luislavena authored and vmg committed Dec 14, 2010
    Makefile should not be created if one of these libraries
    are missing.
    
    Add proper checks and better message on failure.
Commits on Dec 13, 2010
  1. Add tests for opening inexistant repositories

    vmg committed Dec 13, 2010
    Signed-off-by: Vicent Marti <tanoku@gmail.com>
Commits on Dec 9, 2010
  1. Add some Ruby-like methods

    vmg committed Dec 9, 2010
    RawObjects can now hash themselves with RawObject#hash
    
    You can now do a quick walk through a repo using
    
    	Rugged::Repository#walk(from, sorting)
    
    Signed-off-by: Vicent Marti <tanoku@gmail.com>
Commits on Dec 8, 2010
  1. Fix names of the custom backend interface

    vmg committed Dec 8, 2010
    Signed-off-by: Vicent Marti <tanoku@gmail.com>
Commits on Dec 7, 2010
  1. Update include paths

    vmg committed Dec 7, 2010
    libgit2 is now placed at <git2.h>
    
    Signed-off-by: Vicent Marti <tanoku@gmail.com>
Commits on Dec 6, 2010
  1. Fix compatibility with Rubinius/REE

    vmg committed Dec 6, 2010
    The rb_ary_length() function is not implemented outside of the MRI.
    
    Signed-off-by: Vicent Marti <tanoku@gmail.com>
Commits on Dec 5, 2010
  1. Refactor initialization of Rugged::RawObject

    vmg committed Dec 5, 2010
    All the Rugged code with git_rawobj calls uses the same initializator,
    	rugged_rawobject_new().
    
    Signed-off-by: Vicent Marti <tanoku@gmail.com>
  2. Fix memory management in Rugged (the lib is now GC-aware)

    vmg committed Dec 5, 2010
    Technically, a few memory leaks have been fixed. In practice, Rugged
    wasn't freeing a single byte of memory from libgit2: now it is fully
    GC-aware.
    
    Signed-off-by: Vicent Marti <tanoku@gmail.com>
Commits on Dec 4, 2010
  1. Wrap the git_odb_backend structure

    vmg committed Dec 4, 2010
    Allows for custom backends implemented in Ruby. Yes really.
    
    Signed-off-by: Vicent Marti <tanoku@gmail.com>
Commits on Dec 3, 2010
  1. Update to latest API changes

    vmg committed Dec 3, 2010
    In-sync with the ODB decoupling changes.
    
    Signed-off-by: Vicent Marti <tanoku@gmail.com>
Commits on Dec 2, 2010
  1. Do not use uint32_t types in the code

    vmg committed Dec 2, 2010
    Signed-off-by: Vicent Marti <tanoku@gmail.com>
  2. Repository#init now supports custom paths (open2)

    vmg committed Dec 2, 2010
    Signed-off-by: Vicent Marti <tanoku@gmail.com>
  3. Fix unit test for topological sorting

    vmg committed Dec 2, 2010
    Remember, kids: a DAG has at least one topological sort, but it can also
    have more than one!
    
    Signed-off-by: Vicent Marti <tanoku@gmail.com>