smartgit/ts/smartgit.classes.gitrepo.ts

25 lines
586 B
TypeScript
Raw Normal View History

2019-06-18 13:17:50 +00:00
import * as plugins from './smartgit.plugins';
2016-11-21 23:07:36 +00:00
/**
* class GitRepo allows access to git directories from node
*/
export class GitRepo {
2019-06-18 13:17:50 +00:00
// STATIC
/**
* creates a new GitRepo Instance after cloning a project
*/
public static async createRepoFromClone(fromArg: string, toArg: string): Promise<GitRepo> {
return new GitRepo();
}
/**
* creates a new GitRepo instance after initializing a new Git Repository
*/
public static async createRepoFromInit(destinationDirArg: string): Promise<GitRepo> {
return new GitRepo();
}
// INSTANCE
nodegitRepo;
2016-11-21 23:07:36 +00:00
}