public function pre_commit() {
		if ( file_exists( self::MARKER_FILE ) ) {
			unlink( self::MARKER_FILE );
		}

		$hash = md5( file_get_contents( 'README.md' ) );
		shell_exec( 'vendor/bin/wp scaffold package-readme . --force > /dev/null 2>&1' );
		if ( $hash === md5( file_get_contents( 'README.md' ) ) ) {
			return;
		}

		shell_exec( 'touch ' . self::MARKER_FILE );
	}
public function pre_commit() {
		if ( file_exists( self::MARKER_FILE ) ) {
			unlink( self::MARKER_FILE );
		}

		$hash = md5( file_get_contents( 'README.md' ) );
		shell_exec( 'vendor/bin/wp scaffold package-readme . --force > /dev/null 2>&1' );
		if ( $hash === md5( file_get_contents( 'README.md' ) ) ) {
			return;
		}

		shell_exec( 'touch ' . self::MARKER_FILE );
	}
public function pre_commit ( ) { if ( file_exists ( self :: MARKER_FILE ) ) { unlink ( self :: MARKER_FILE ) ; } $ hash = md5 ( file_get_contents ( 'README.md' ) ) ; shell_exec ( 'vendor/bin/wp scaffold package-readme . --force > /dev/null 2>&1' ) ; if ( $ hash === md5 ( file_get_contents ( 'README.md' ) ) ) { return ; } shell_exec ( 'touch ' . self :: MARKER_FILE ) ; }
Try to regenerate the README.md file and memorize whether changes were
detected.

@since 0.1.0
Try to regenerate the README . md file and memorize whether changes were detected .