• Show log

    Commit

  • Hash : 4d99c4cf
    Author : Brock Peabody
    Date : 2016-11-23T18:32:48

    Allow for caching of submodules.
    
    Added `git_repository_submodule_cache_all` to initialze a cache of
    submodules on the repository so that operations looking up N
    submodules are O(N) and not O(N^2).  Added a
    `git_repository_submodule_cache_clear` function to remove the cache.
    
    Also optimized the function that loads all submodules as it was itself
    O(N^2) w.r.t the number of submodules, having to loop through the
    `.gitmodules` file once per submodule.  I changed it to process the
    `.gitmodules` file once, into a map.
    
    Signed-off-by: David Turner <dturner@twosigma.com>
    

  • 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.