• Show log

    Commit

  • Hash : a5f9b5f8
    Author : Russell Belfer
    Date : 2013-07-05T16:59:38

    Diff hunk context off by one on long lines
    
    The diff hunk context string that is returned to xdiff need not
    be NUL terminated because the xdiff code just copies the number of
    bytes that you report directly into the output.  There was an off
    by one in the diff driver code when the header context was longer
    than the output buffer size, the output buffer length included
    the NUL byte which was copied into the hunk header.
    
    Fixes #1710
    

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