• Show log

    Commit

  • Hash : 956f4da8
    Author : Edward Thomson
    Date : 2015-11-13T16:30:39

    index: test for smudged entries on write only
    
    Test that entries are only smudged when we write the index: the
    entry smudging is to prevent us from updating an index in a way
    that it would be impossible to tell that an item was racy.
    Consider when we load an index:  any entries that have the same
    (or newer) timestamp than the index itself are considered racy,
    and are subject to further scrutiny.
    
    If we *save* that index with the same entries that we loaded,
    then the index would now have a newer timestamp than the entries,
    and they would no longer be given that additional scrutiny, failing
    our racy detection!  So test that we smudge those entries only on
    writing the new index, but that we can detect them (in diff) without
    having to write.
    

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