projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
fc7eb32
)
GitMonitor.vala
author
Alan Knowles
<alan@roojs.com>
Fri, 2 Nov 2018 04:20:12 +0000
(12:20 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 2 Nov 2018 04:20:12 +0000
(12:20 +0800)
GitMonitor.vala
patch
|
blob
|
history
diff --git
a/GitMonitor.vala
b/GitMonitor.vala
index
78315cb
..
4c7dfde
100644
(file)
--- a/
GitMonitor.vala
+++ b/
GitMonitor.vala
@@
-251,14
+251,14
@@
public class GitMonitor : Monitor
var gitpath = cmd.gitpath;
var repo = GitRepo.get( gitpath );
var gitpath = cmd.gitpath;
var repo = GitRepo.get( gitpath );
- if ( !repo.is
WipB
ranch()) {
+ if ( !repo.is
_wip_b
ranch()) {
leave_queued.add(cmd);
continue;
}
GLib.debug("GitMonitor.runQueue - finding %s", cmd.gitpath);
leave_queued.add(cmd);
continue;
}
GLib.debug("GitMonitor.runQueue - finding %s", cmd.gitpath);
- var ix = GitRepo.indexOf(repo_list,
cmd.
gitpath);
+ var ix = GitRepo.indexOf(repo_list,
gitpath);
if (ix < 0) {
repo_list.append_val( GitRepo.get( gitpath ));
ix = GitRepo.indexOf(repo_list, cmd.gitpath);
if (ix < 0) {
repo_list.append_val( GitRepo.get( gitpath ));
ix = GitRepo.indexOf(repo_list, cmd.gitpath);
@@
-331,6
+331,9
@@
public class GitMonitor : Monitor
break;
}
}
break;
}
}
+
+ repo.cmds.clear();
+
GLib.debug( "ADD : %s", GitMonitorQueue.queueArrayToString(add_files));
GLib.debug( "REMOVE FILES: %s", GitMonitorQueue.queueArrayToString(remove_files));
GLib.debug( "ADD : %s", GitMonitorQueue.queueArrayToString(add_files));
GLib.debug( "REMOVE FILES: %s", GitMonitorQueue.queueArrayToString(remove_files));