GitWrapper\GitWorkingCopy::config PHP Method

config() public method

Get and set repository options.
public config ( ) : GitWorkingCopy
return GitWorkingCopy
    public function config()
    {
        $args = func_get_args();
        array_unshift($args, 'config');
        return $this->run($args);
    }

Usage Example

Exemplo n.º 1
0
 /**
  * Set up the git wrapper and the temporary directory.
  */
 protected function setup()
 {
     // @TODO: Allow setting up in an existing dierectory.
     if (!$this->dir) {
         // Greate a temporary directory.
         $tempfile = tempnam(sys_get_temp_dir(), '');
         mkdir($tempfile . '.git');
         if (file_exists($tempfile)) {
             unlink($tempfile);
         }
         $this->dir = $tempfile . '.git';
         $this->git = $this->wrapper->init($this->dir);
     }
     $this->git->config('user.name', 'GitMerge')->config('user.email', '*****@*****.**')->config('merge.conflictStyle', 'diff3');
     $this->strategy = null;
 }
All Usage Examples Of GitWrapper\GitWorkingCopy::config