Symfony - 在 html (plugin/bundle) 中显示 Git Pushes/Commits 信息
Symfony - Showing Git Pushes/Commits info in html (plugin/bundle)
我想知道是否有人知道 plugin/bundle 让 Symfony 显示您的 Git Pushes/Commits 的权利?
在询问之前我自己尝试了一些,但并没有真正找到我要找的东西,只是一个简单的 plugin/bundle 来显示你的 Git 信息。
提前致谢! :)
检查GitElephantBundle and GitElephant library。
用法示例:
// Log contains a collection of commit objects
// syntax: getLog(<tree-ish>, path = null, limit = 15, offset = null)
$log = $repo->getLog();
$log = $repo->getLog('master', null, 5);
$log = $repo->getLog('v0.1', null, 5, 10);
// or directly create a log object
$log = new Log($repo);
$log = new Log($repo, 'v0.1', null, 5, 10);
我想知道是否有人知道 plugin/bundle 让 Symfony 显示您的 Git Pushes/Commits 的权利? 在询问之前我自己尝试了一些,但并没有真正找到我要找的东西,只是一个简单的 plugin/bundle 来显示你的 Git 信息。
提前致谢! :)
检查GitElephantBundle and GitElephant library。
用法示例:
// Log contains a collection of commit objects
// syntax: getLog(<tree-ish>, path = null, limit = 15, offset = null)
$log = $repo->getLog();
$log = $repo->getLog('master', null, 5);
$log = $repo->getLog('v0.1', null, 5, 10);
// or directly create a log object
$log = new Log($repo);
$log = new Log($repo, 'v0.1', null, 5, 10);