You appear to be a bot. Output may be restricted
Description
Perform a git command against the repository
Usage
Git::command( $command, $parms );
Parameters
- $command
- ( mixed ) optional default: status -s –
- $parms
- ( mixed ) optional –
Returns
voidSource
File name: oik-batch/includes/class-git.phpLines:
1 to 13 of 13
public function command( $command="status -s", $parms=null ) { $cmd = $this->actual_command( $command, $parms ); $prevdir = $this->chdir( $this->source_dir ); //echo "Is source_dir correctly set: {$this->source_dir}?" . PHP_EOL; $this->execute( $cmd ); //echo "Result: " . $this->result . PHP_EOL; $this->reset_dir( $prevdir ); $this->command = $command; $this->parms = $parms; //echo "Result: " . $this->result . PHP_EOL; return( $this->result ); }View on GitHub