Rev 79 | Rev 81 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 79 | Rev 80 | ||
---|---|---|---|
Line 77... | Line 77... | ||
77 | if (class_exists('ViaThinkSoft\Glip\Git')) { |
77 | if (class_exists('ViaThinkSoft\Glip\Git')) { |
78 | // https://github.com/danielmarschall/glip |
78 | // https://github.com/danielmarschall/glip |
79 | // composer require danielmarschall/glip |
79 | // composer require danielmarschall/glip |
80 | $git = new Git($git_dir); |
80 | $git = new Git($git_dir); |
81 | $obj = $git->getObject(hex2bin($commit_object)); |
81 | $obj = $git->getObject(hex2bin($commit_object)); |
82 | echo $obj->detail; |
82 | return $obj->detail; |
83 | } else { |
83 | } else { |
84 | // Own implementation (cannot read delta objects yet) |
84 | // Own implementation (cannot read delta objects yet) |
85 | return git_read_object($commit_object, |
85 | return git_read_object($commit_object, |
86 | $objects_dir.'/pack/'.$basename.'.idx', |
86 | $objects_dir.'/pack/'.$basename.'.idx', |
87 | $objects_dir.'/pack/'.$basename.'.pack' |
87 | $objects_dir.'/pack/'.$basename.'.pack' |