mirror of
https://github.com/reactos/syzkaller.git
synced 2024-11-24 03:49:45 +00:00
472947468d
This just says that we want to use git to checkout OpenBSD without any special/complex features. Update #712
56 lines
1.5 KiB
Go
56 lines
1.5 KiB
Go
// 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")
|
|
}
|