willCommit() public method

Returns true if there is something to commit
public willCommit ( ) : boolean
return boolean
Ejemplo n.º 1
0
 private function revertToCommit($commitHash)
 {
     $this->repository->revertAll($commitHash);
     if (!$this->repository->willCommit()) {
         return RevertStatus::NOTHING_TO_COMMIT;
     }
     return RevertStatus::OK;
 }