Liip\RMT\VCS\Git::getAllModificationsSince PHP Method

getAllModificationsSince() public method

public getAllModificationsSince ( $tag, $color = true, $noMergeCommits = false )
    public function getAllModificationsSince($tag, $color = true, $noMergeCommits = false)
    {
        $color = $color ? '--color=always' : '';
        $noMergeCommits = $noMergeCommits ? '--no-merges' : '';
        return $this->executeGitCommand("log --oneline {$tag}..HEAD {$color} {$noMergeCommits}");
    }

Usage Example

Beispiel #1
0
 public function testSaveWorkingCopy()
 {
     $vcs = new Git();
     $vcs->createTag(new \Liip\RMT\Version('2.0.0'));
     $this->assertEquals(array(), $vcs->getAllModificationsSince('2.0.0'));
     exec('rm file2');
     $vcs->saveWorkingCopy('Remove the second file');
     $this->assertCount(1, $vcs->getAllModificationsSince('2.0.0'));
 }