Exemplo n.º 1
0
 public function commits()
 {
     $git = new Git();
     $repositories = new repositories($this->getDb());
     $commits = new commits($this->getDb());
     $all_repos = $repositories->select('*');
     foreach ($all_repos as $repo) {
         display($repo);
         $repo_name = isset($repo['name']) ? $repo['name'] : false;
         if ($repo_name) {
             $repo_commits = $git->git_rev_list($repo_name);
             display($repo_commits);
             if (count($repo_commits) > 0) {
                 foreach ($repo_commits as $repo_commit) {
                     if (isset($repo_commit['repo']) && isset($repo_commit['commit']) && $repo_commit['repo'] != '' && $repo_commit['commit'] != '') {
                         $old_data = $commits->select('*', 'WHERE repo="' . $repo_commit['repo'] . '" AND commit="' . $repo_commit['commit'] . '"');
                         if (!isset($old_data[0]['id'])) {
                             $commits->insert($repo_commit);
                         }
                     }
                 }
             }
         }
     }
 }
 function CommitsByTreeLocation($dbh)
 {
     parent::Commits($dbh);
 }
 function CommitsByDescription($dbh)
 {
     parent::Commits($dbh);
 }
 function CommitsByCommitter($dbh)
 {
     parent::Commits($dbh);
 }
Exemplo n.º 5
0
 function CommitsMyFlagged($dbh)
 {
     parent::Commits($dbh);
 }