public static function createFromFile(string $path, $commentCharacter = '#') : CommitMessage
    {
        if (!file_exists($path)) {
            throw new RuntimeException('Commit message file not found');
        }

        return new CommitMessage(file_get_contents($path), $commentCharacter);
    }
public static function createFromFile(string $path, $commentCharacter = '#') : CommitMessage
    {
        if (!file_exists($path)) {
            throw new RuntimeException('Commit message file not found');
        }

        return new CommitMessage(file_get_contents($path), $commentCharacter);
    }
public static function createFromFile ( string $ path , $ commentCharacter = '#' ) : CommitMessage { if ( ! file_exists ( $ path ) ) { throw new RuntimeException ( 'Commit message file not found' ) ; } return new CommitMessage ( file_get_contents ( $ path ) , $ commentCharacter ) ; }
Create CommitMessage from file

@param  string $path
@param  string $commentCharacter
@return \SebastianFeldmann\Git\CommitMessage
Create CommitMessage from file