mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
19 lines
494 B
TypeScript
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);
|
|
});
|
|
});
|