projects
/
gitlive
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
GitMonitorQueue.vala
[gitlive]
/
GitRepo.vala
diff --git
a/GitRepo.vala
b/GitRepo.vala
index
4e018e5
..
e51d150
100644
(file)
--- a/
GitRepo.vala
+++ b/
GitRepo.vala
@@
-22,11
+22,12
@@
public class GitRepo : Object
public Gee.HashMap<string,bool> ignore_files;
public GitBranch currentBranch;
public Gee.HashMap<string,bool> ignore_files;
public GitBranch currentBranch;
+ public RooTicket? activeTicket;
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
+138,9
@@
public class GitRepo : Object
return new GitRepo(path);
}
return new GitRepo(path);
}
-
-
-
+ private GitRepo.single() {
+ // used to create the signleton
+ }
/**
* constructor:
*
/**
* constructor:
*
@@
-162,11
+163,17
@@
public class GitRepo : Object
var cache = GitRepo.singleton().cache;
//Repo.superclass.constructor.call(this,cfg);
var cache = GitRepo.singleton().cache;
//Repo.superclass.constructor.call(this,cfg);
- if ( !cache.has_key(path) ) {
- cache.set( path, this);
+
if ( !cache.has_key(path) ) {
+
cache.set( path, this);
}
}
+ this.loadBranches();
}
}
+ public bool is_wip_branch()
+ {
+ return this.currentBranch.name.has_prefix("wip_")
+
+ }
public bool is_autocommit ()
{
public bool is_autocommit ()
{
@@
-200,6
+207,10
@@
public class GitRepo : Object
}
}
}
}
+
+
+
+
public string branchesToString()
{
var ret = "";
public string branchesToString()
{
var ret = "";