• Show log

    Commit

  • Hash : 78580ad3
    Author : Edward Thomson
    Date : 2018-11-05T15:34:59

    apply: test modifying a file after renaming it
    
    Ensure that we cannot modify a file after it's been renamed out of the
    way.  If multiple deltas exist for a single path, ensure that we do not
    attempt to modify a file after it's been renamed out of the way.
    
    To support this, we must track the paths that have been removed or
    renamed; add to a string map when we remove a path and remove from the
    string map if we recreate a path.  Validate that we are not applying to
    a path that is in this map, unless the delta is a rename, since git
    supports renaming one file to two different places in two different
    deltas.
    
    Further, test that we cannot apply a modification delta to a path that
    will be created in the future by a rename (a path that does not yet
    exist.)
    

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