git.cweiske.de
/
phorkie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fe7ab7b
)
move load method to top
author
Christian Weiske
<cweiske@cweiske.de>
Wed, 21 Nov 2012 21:33:59 +0000
(22:33 +0100)
committer
Christian Weiske
<cweiske@cweiske.de>
Wed, 21 Nov 2012 21:33:59 +0000
(22:33 +0100)
src/phorkie/Repository.php
patch
|
blob
|
history
diff --git
a/src/phorkie/Repository.php
b/src/phorkie/Repository.php
index d82789d54dc0ef44c26fd9d38acf659b07c7d6b4..5c68ee4806525f79b8c15b0b3fd308cba0103beb 100644
(file)
--- a/
src/phorkie/Repository.php
+++ b/
src/phorkie/Repository.php
@@
-65,6
+65,16
@@
class Repository
$this->loadMessage();
}
$this->loadMessage();
}
+ public function loadById($id)
+ {
+ if (!is_numeric($id)) {
+ throw new Exception_Input('Paste ID not numeric');
+ }
+ $this->id = (int)$id;
+ $this->loadDirs();
+ $this->loadHash();
+ }
+
protected function loadDirs()
{
$gitDir = $GLOBALS['phorkie']['cfg']['gitdir'] . '/' . $this->id . '.git';
protected function loadDirs()
{
$gitDir = $GLOBALS['phorkie']['cfg']['gitdir'] . '/' . $this->id . '.git';
@@
-126,16
+136,6
@@
class Repository
}
}
}
}
- public function loadById($id)
- {
- if (!is_numeric($id)) {
- throw new Exception_Input('Paste ID not numeric');
- }
- $this->id = (int)$id;
- $this->loadDirs();
- $this->loadHash();
- }
-
public function getVc()
{
return new \VersionControl_Git($this->gitDir);
public function getVc()
{
return new \VersionControl_Git($this->gitDir);