コード例 #1
0
 /**
  * Constructor, sets mode of this object
  *
  * @return void
  * @author The Young Shepherd
  **/
 public function __construct(Git $git, $sha = null, $mode = null)
 {
     if (!is_null($mode)) {
         $this->mode = $mode;
     }
     parent::__construct($git, $sha);
 }
コード例 #2
0
ファイル: GitBlob.php プロジェクト: git4p/git4p
 public function __construct($git)
 {
     parent::__construct($git);
 }
コード例 #3
0
ファイル: git_blob.class.php プロジェクト: j0inty/glip
 public function __construct($repo)
 {
     parent::__construct($repo, Git::OBJ_BLOB);
 }
コード例 #4
0
ファイル: git_commit.class.php プロジェクト: j0inty/glip
 public function __construct($repo)
 {
     parent::__construct($repo, Git::OBJ_COMMIT);
 }
コード例 #5
0
ファイル: GitCommit.php プロジェクト: aredridel/glip
 public function __clone()
 {
     parent::__clone();
     $this->data['tree'] = clone $this->tree;
 }
コード例 #6
0
ファイル: git.class.php プロジェクト: Bombe/glip
 /**
  * @brief Fetch an object in its PHP representation.
  *
  * @param $name (string) name of the object (binary SHA1)
  * @returns (GitObject) the object
  */
 public function getObject($name)
 {
     list($type, $data) = $this->getRawObject($name);
     $object = GitObject::create($this, $type);
     $object->unserialize($data);
     assert($name == $object->getName());
     return $object;
 }