public hasChanges ( ) : boolean | ||
return | boolean |
public function hasChanges()
{
$output = $this->getStatus();
return !empty($output);
}
/** * @return bool * @throws GitException */ public function precheck() { if ($this->git->hasChanges()) { throw new GitException('Working Copy is not clean, please commit or stash changes first.'); } return true; }