smartgit/ts/smartgit.add.ts
2016-06-12 16:46:59 +02:00

8 lines
242 B
TypeScript

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);
}