public static GitRepo singleton()
{
if (_GitRepo == null) {
- _GitRepo = new GitRepo();
+ _GitRepo = new GitRepo.single();
_GitRepo.cache = new Gee.HashMap<string,GitRepo>();
}
return _GitRepo;
return new GitRepo(path);
}
-
-
-
+ private GitRepo.single() {
+ // used to create the signleton
+ }
/**
* constructor:
*