escargs() 정적인 공개 메소드

static public escargs ( $args )
예제 #1
0
파일: GitCommit.php 프로젝트: rsms/gitblog
 function rawPatch($paths = null)
 {
     $paths = git::escargs($paths);
     $cmd = 'log -p --full-index --pretty="format:" --encoding=UTF-8 --date=iso --dense ' . escapeshellarg($this->id) . ' -1';
     if ($paths) {
         $cmd .= ' -- ' . $paths;
     }
     $s = git::exec($cmd);
     return $s ? substr($s, 1, -1) : '';
 }