File inc/git.inc.php changed (mode: 100644) (index 64c2717..015e059) |
... |
... |
require_once($INC . "/events.inc.php"); |
6 |
6 |
|
|
7 |
7 |
$rg_git_zero = "0000000000000000000000000000000000000000"; |
$rg_git_zero = "0000000000000000000000000000000000000000"; |
8 |
8 |
$rg_git_empty = "4b825dc642cb6eb9a060e54bf8d69288fbee4904"; |
$rg_git_empty = "4b825dc642cb6eb9a060e54bf8d69288fbee4904"; |
|
9 |
|
define('GIT_LINK_MASK', intval(base_convert('160000', 8, 10))); |
9 |
10 |
|
|
10 |
11 |
$rg_git_error = ""; |
$rg_git_error = ""; |
11 |
12 |
|
|
|
... |
... |
function rg_git_ls_tree($repo_path, $tree, $path) |
469 |
470 |
'${1} ${2} ${3} ${5}', $_t[0]); |
'${1} ${2} ${3} ${5}', $_t[0]); |
470 |
471 |
$_t = explode(" ", $_i); |
$_t = explode(" ", $_i); |
471 |
472 |
$_y['mode'] = $_t[0]; |
$_y['mode'] = $_t[0]; |
|
473 |
|
$_y['mode_int'] = intval(base_convert($_t[0], 8, 10)); |
|
474 |
|
if (($_y['mode_int'] & GIT_LINK_MASK) == GIT_LINK_MASK) |
|
475 |
|
$_y['is_link'] = 1; |
|
476 |
|
else |
|
477 |
|
$_y['is_link'] = 0; |
472 |
478 |
$_y['type'] = $_t[1]; |
$_y['type'] = $_t[1]; |
473 |
479 |
$_y['ref'] = $_t[2]; |
$_y['ref'] = $_t[2]; |
474 |
480 |
$_y['size'] = $_t[3]; |
$_y['size'] = $_t[3]; |