• Show log

    Commit

  • Hash : df4258ad
    Author : Edward Thomson
    Date : 2018-11-04T13:01:03

    apply: handle multiple deltas to the same file
    
    git allows a patch file to contain multiple deltas to the same file:
    although it does not produce files in this format itself, this could
    be the result of concatenating two different patch files that affected
    the same file.
    
    git apply behaves by applying this next delta to the existing postimage
    of the file.  We should do the same.  If we have previously seen a file,
    and produced a postimage for it, we will load that postimage and apply
    the current delta to that.  If we have not, get the file from the
    preimage.
    

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