DefinitelyTyped/types/git/git-tests.ts
2017-03-24 14:27:52 -07:00

19 lines
494 B
TypeScript

import base = require("git");
var git = new base.Git("../.git");
git.call_git("", "clone", "", {}, ["https://github.com/DefinitelyTyped/DefinitelyTyped.git", "d.ts"], function (err, data) {
console.log(arguments);
});
new base.Repo("../.git", (err, repo)=> {
repo.log(null, null, null, (err, commits)=> {
commits.forEach(commit=> {
console.log(commit.message);
})
});
repo.diff("aaa", "bbb", (err, data)=> {
console.log(data);
});
});