I can use gcov/lcov/genhtml to generate test coverage report for all the files
, now I want to only get the report for the last 10 commits. how can I get there?
What I have tried is:
1. compile and run the program.
2. lcov --directory . --capture --output-file redis.info
3. git diff HEAD~10..HEAD > my.patch
4. lcov --diff ./redis.info my.patch -o redis-patch.info
I want to the the coverage for my.patch only but failed (looks coverage for all the data still)