mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
21 lines
524 B
TypeScript
21 lines
524 B
TypeScript
///<reference path='./node-git.d.ts'/>
|
|
|
|
import base = require("git");
|
|
|
|
var git = new base.Git("../.git");
|
|
git.call_git("", "clone", "", {}, ["https://github.com/borisyankov/DefinitelyTyped.git", "d.ts"], (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);
|
|
});
|
|
});
|