• Show log

    Commit

  • Hash : da337c80
    Author : Russell Belfer
    Date : 2012-02-22T11:22:33

    Iterator improvements from diff implementation
    
    This makes two changes to iterator behavior: first, advance
    can optionally do the work of returning the new current value.
    This is such a common pattern that it really cleans up usage.
    
    Second, for workdir iterators, this removes automatically
    iterating into directories.  That seemed like a good idea,
    but when an entirely new directory hierarchy is introduced
    into the workdir, there is no reason to iterate into it if
    there are no corresponding entries in the tree/index that it
    is being compared to.
    
    This second change actually wasn't a lot of code because not
    descending into directories was already the behavior for
    ignored directories.  This just extends that to all directories.
    

  • README.md

  • Writing Clar tests for libgit2

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

    https://github.com/tanoku/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.