Gittern\Repository::flush PHP Method

flush() public method

public flush ( )
    public function flush()
    {
        foreach ($this->unflushed_objects as $sha => $raw_object) {
            $this->transport->putRawObject($raw_object);
        }
        $this->flushIndex();
        foreach ($this->branch_moves as $branch => $commit) {
            $this->transport->setBranch($branch, $commit->getSha());
        }
        foreach ($this->branch_removes as $branch) {
            $this->transport->removeBranch($branch);
        }
    }