Fall back on git rev-list if skipping a significant number of commits
Fall back on git rev-list if skipping a significant number of commits

--- a/include/git/Project.class.php
+++ b/include/git/Project.class.php
@@ -1146,7 +1146,7 @@
 	 */
 	public function GetLog($hash, $count = 50, $skip = 0)
 	{
-		if (GitPHP_Config::GetInstance()->GetValue('compat', false)) {
+		if (GitPHP_Config::GetInstance()->GetValue('compat', false) || ($skip > 200)) {
 			return $this->GetLogGit($hash, $count, $skip);
 		} else {
 			return $this->GetLogRaw($hash, $count, $skip);

comments