• Show log

    Commit

  • Hash : f1e2735c
    Author : Russell Belfer
    Date : 2013-01-30T11:10:39

    Add helper for diff line stats
    
    This adds a `git_diff_patch_line_stats()` API that gets the total
    number of adds, deletes, and context lines in a patch.  This will
    make it a little easier to emulate `git diff --stat` and the like.
    
    Right now, this relies on generating the `git_diff_patch` object,
    which is a pretty heavyweight way to get stat information.  At
    some future point, it would probably be nice to be able to get
    this information without allocating the entire `git_diff_patch`,
    but that's a much larger project.
    

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