• Show log

    Commit

  • Hash : e5090ee3
    Author : Patrick Steinhardt
    Date : 2018-10-04T11:19:28

    diff_stats: use git's formatting of renames with common directories
    
    In cases where a file gets renamed such that the directories containing
    it previous and after the rename have a common prefix, then git will
    avoid printing this prefix twice and instead format the rename as
    "prefix/{old => new}". We currently didn't do anything like that, but
    simply printed "prefix/old -> prefix/new".
    
    Adjust our behaviour to instead match upstream. Adjust the test for this
    behaviour to expect the new format.
    

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