• Show log

    Commit

  • Hash : 323bb885
    Author : Carlos Martín Nieto
    Date : 2013-03-04T00:21:56

    Fix a few leaks
    
    `git_diff_get_patch()` would unconditionally load the patch object and
    then simply leak it if the user hadn't requested it. Short-circuit
    loading the object if the user doesn't want it.
    
    The rest of the plugs are simply calling the free functions of objects
    allocated during the tests.
    

  • README.md

  • Writing Clar tests for libgit2

    For information on the Clar testing framework and a detailed introduction please visit:

    https://github.com/vmg/clar

    • Write your modules and tests. Use good, meaningful names.

    • Make sure you actually build the tests by setting:

        cmake -DBUILD_CLAR=ON build/
    • Test:

        ./build/libgit2_clar
    • Make sure everything is fine.

    • Send your pull request. That’s it.