aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/vcs/openbsd.go
blob: fdcc648f7f5336da53df6fe631b0a0f570328d8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// Copyright 2018 syzkaller project authors. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.

package vcs

import (
	"fmt"
	"io"
)

type openbsd struct {
	git *git
}

func newOpenBSD(vm, dir string) *openbsd {
	return &openbsd{
		git: newGit(dir),
	}
}

func (ctx *openbsd) Poll(repo, branch string) (*Commit, error) {
	return ctx.git.Poll(repo, branch)
}

func (ctx *openbsd) CheckoutBranch(repo, branch string) (*Commit, error) {
	return nil, fmt.Errorf("not implemented for openbsd")
}

func (ctx *openbsd) CheckoutCommit(repo, commit string) (*Commit, error) {
	return nil, fmt.Errorf("not implemented for openbsd")
}

func (ctx *openbsd) SwitchCommit(commit string) (*Commit, error) {
	return nil, fmt.Errorf("not implemented for openbsd")
}

func (ctx *openbsd) HeadCommit() (*Commit, error) {
	return nil, fmt.Errorf("not implemented for openbsd")
}

func (ctx *openbsd) ListRecentCommits(baseCommit string) ([]string, error) {
	return ctx.git.ListRecentCommits(baseCommit)
}

func (ctx *openbsd) ExtractFixTagsFromCommits(baseCommit, email string) ([]FixCommit, error) {
	return ctx.git.ExtractFixTagsFromCommits(baseCommit, email)
}

func (ctx *openbsd) Bisect(bad, good string, trace io.Writer, pred func() (BisectResult, error)) (*Commit, error) {
	return nil, fmt.Errorf("not implemented for openbsd")
}

func (ctx *openbsd) PreviousReleaseTags(commit string) ([]string, error) {
	return nil, fmt.Errorf("not implemented for openbsd")
}