projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ecb9f23
)
Scm/Repo.js
author
Alan Knowles
<alan@roojs.com>
Sat, 24 Nov 2012 14:01:13 +0000
(22:01 +0800)
committer
Alan Knowles
<alan@roojs.com>
Sat, 24 Nov 2012 14:01:13 +0000
(22:01 +0800)
Scm/Repo.js
patch
|
blob
|
history
diff --git
a/Scm/Repo.js
b/Scm/Repo.js
index
9aaca61
..
9ccd4d1
100644
(file)
--- a/
Scm/Repo.js
+++ b/
Scm/Repo.js
@@
-324,4
+324,15
@@
Repo.list = function()
return Repo._list;
}
-
+Repo.get = function(path)
+{
+ var tr = Repo.list();
+ for (var i =0;i < tr.length; i++) {
+ if (tr[i].repopath == path) {
+ return tr[i];
+ }
+
+ }
+ return false;
+
+}