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) : '';
}