public function moveAndCommit($author, $commitMessage, FilePath $oldPath, FilePath $newPath) { $workingCopy = $this->getWorkingCopy(); $workingCopy->mv($oldPath->toRelativeFileString(), $newPath->toRelativeFileString()); $this->commit($author, $commitMessage); }