public function getLogRange(
        $refStart,
        $refEnd,
        $path = null,
        int $limit = 10,
        int $offset = null,
        bool $firstParent = false
    ) {
        // Handle when clients provide bad start reference on branch creation
        if (preg_match('~^[0]+$~', $refStart)) {
            return new Log($this, $refEnd, $path, $limit, $offset, $firstParent);
        }

        // Handle when clients provide bad end reference on branch deletion
        if (preg_match('~^[0]+$~', $refEnd)) {
            $refEnd = $refStart;
        }

        return new LogRange($this, $refStart, $refEnd, $path, $limit, $offset, $firstParent);
    }
public function getLogRange(
        $refStart,
        $refEnd,
        $path = null,
        int $limit = 10,
        int $offset = null,
        bool $firstParent = false
    ) {
        // Handle when clients provide bad start reference on branch creation
        if (preg_match('~^[0]+$~', $refStart)) {
            return new Log($this, $refEnd, $path, $limit, $offset, $firstParent);
        }

        // Handle when clients provide bad end reference on branch deletion
        if (preg_match('~^[0]+$~', $refEnd)) {
            $refEnd = $refStart;
        }

        return new LogRange($this, $refStart, $refEnd, $path, $limit, $offset, $firstParent);
    }
public function getLogRange ( $ refStart , $ refEnd , $ path = null , int $ limit = 10 , int $ offset = null , bool $ firstParent = false ) { // Handle when clients provide bad start reference on branch creation if ( preg_match ( '~^[0]+$~' , $ refStart ) ) { return new Log ( $ this , $ refEnd , $ path , $ limit , $ offset , $ firstParent ) ; } // Handle when clients provide bad end reference on branch deletion if ( preg_match ( '~^[0]+$~' , $ refEnd ) ) { $ refEnd = $ refStart ; } return new LogRange ( $ this , $ refStart , $ refEnd , $ path , $ limit , $ offset , $ firstParent ) ; }
Get a log for a range ref

@param string            $refStart
@param string            $refEnd
@param string|NodeObject $path        the physical path to the tree relative to the repository root
@param int|null          $limit       limit to n entries
@param int|null          $offset      skip n entries
@param boolean|false     $firstParent skip commits brought in to branch by a merge

@return \GitElephant\Objects\LogRange|\GitElephant\Objects\Log
Get a log for a range ref