File tree Expand file tree Collapse file tree
generate/templates/manual/src/functions Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,39 +9,3 @@ const git_error *git_error_dup(const git_error *arg) {
99 result->message = strdup (arg->message );
1010 return result;
1111}
12-
13- const git_oid *git_oid_dup (const git_oid *arg) {
14- git_oid *result = (git_oid *)malloc (sizeof (git_oid));
15- git_oid_cpy (result, arg);
16- return result;
17- }
18-
19- const git_index_entry *git_index_entry_dup (const git_index_entry *arg) {
20- git_index_entry *result = (git_index_entry *)malloc (sizeof (git_index_entry));
21- *result = *arg;
22- return result;
23- }
24-
25- const git_index_time *git_index_time_dup (const git_index_time *arg) {
26- git_index_time *result = (git_index_time *)malloc (sizeof (git_index_time));
27- *result = (const git_index_time) *arg;
28- return result;
29- }
30-
31- const git_time *git_time_dup (const git_time *arg) {
32- git_time *result = (git_time *)malloc (sizeof (git_time));
33- *result = *arg;
34- return result;
35- }
36-
37- const git_diff_delta *git_diff_delta_dup (const git_diff_delta *arg) {
38- git_diff_delta *result = (git_diff_delta *)malloc (sizeof (git_diff_delta));
39- *result = *arg;
40- return result;
41- }
42-
43- const git_diff_file *git_diff_file_dup (const git_diff_file *arg) {
44- git_diff_file *result = (git_diff_file *)malloc (sizeof (git_diff_file));
45- *result = *arg;
46- return result;
47- }
Original file line number Diff line number Diff line change 8484 "scripts" : {
8585 "lint" : " jshint lib test/tests examples lifecycleScripts" ,
8686 "coveralls" : " cat ./test/coverage/merged.lcov | coveralls" ,
87- "cppcov" : " mkdir -p test/coverage/cpp && lcov --gcov-tool $(which gcov) --capture --directory build/Release/obj.target/nodegit/src --output-file test/coverage/cpp/lcov.info" ,
87+ "filtercov" : " lcov --extract test/coverage/cpp/lcov_full.info $(pwd)/src/* $(pwd)/src/**/* $(pwd)/include/* $(pwd)/include/**/* --output-file test/coverage/cpp/lcov.info && rm test/coverage/cpp/lcov_full.info" ,
88+ "cppcov" : " mkdir -p test/coverage/cpp && lcov --gcov-tool $(which gcov) --capture --directory build/Release/obj.target/nodegit/src --output-file test/coverage/cpp/lcov_full.info" ,
8889 "mergecov" : " lcov-result-merger 'test/**/*.info' 'test/coverage/merged.lcov' && genhtml test/coverage/merged.lcov --output-directory test/coverage/report" ,
89- "cov" : " npm run cppcov && npm run mergecov" ,
90+ "cov" : " npm run cppcov && npm run filtercov && npm run mergecov" ,
9091 "mocha" : " mocha test/runner test/tests" ,
9192 "mochaDebug" : " mocha --debug-brk test/runner test/tests" ,
9293 "test" : " npm run lint && iojs --expose-gc test || node --expose-gc test" ,
You can’t perform that action at this time.
0 commit comments