TQ\Vcs\Repository\RepositoryInterface::commit PHP Method

commit() public method

Commits the currently staged changes into the repository
public commit ( string $commitMsg, array $file = null, string | null $author = null, array $extraArgs = [] )
$commitMsg string The commit message
$file array Restrict commit to the given files or NULL to commit all staged changes
$author string | null The author
$extraArgs array Allow the user to pass extra args eg array('-i')
    public function commit($commitMsg, array $file = null, $author = null, array $extraArgs = array());