projects
/
gitlive
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sync
[gitlive]
/
GitRepo.vala
diff --git
a/GitRepo.vala
b/GitRepo.vala
index
4e018e5
..
99b0267
100644
(file)
--- a/
GitRepo.vala
+++ b/
GitRepo.vala
@@
-26,7
+26,7
@@
public class GitRepo : Object
public static GitRepo singleton()
{
if (_GitRepo == null) {
public static GitRepo singleton()
{
if (_GitRepo == null) {
- _GitRepo = new GitRepo();
+ _GitRepo = new GitRepo
.single
();
_GitRepo.cache = new Gee.HashMap<string,GitRepo>();
}
return _GitRepo;
_GitRepo.cache = new Gee.HashMap<string,GitRepo>();
}
return _GitRepo;
@@
-137,9
+137,9
@@
public class GitRepo : Object
return new GitRepo(path);
}
return new GitRepo(path);
}
-
-
-
+ private GitRepo.single() {
+ // used to create the signleton
+ }
/**
* constructor:
*
/**
* constructor:
*