smartgit/ts/smartgit.add.ts

8 lines
242 B
TypeScript
Raw Normal View History

2016-06-12 14:46:59 +00:00
import "typings-global";
import * as plugins from "./smartgit.plugins";
export let pull = (optionsArg:{path:string,ref?:string}) => {
if(!optionsArg.ref) optionsArg.ref = "master";
plugins.nodegit.Repository.open(optionsArg.path);
}