Documentation ¶
Index ¶
- type FakeGit
- func (f *FakeGit) AddLocalConfig(source, key, value string) error
- func (f *FakeGit) AddRemote(source, remote, url string) error
- func (f *FakeGit) Archive(source, ref, format string, w io.Writer) error
- func (g *FakeGit) Checkout(dir string, ref string) error
- func (g *FakeGit) Clone(dir string, url string) error
- func (g *FakeGit) CloneBare(dir string, url string) error
- func (g *FakeGit) CloneMirror(source, target string) error
- func (g *FakeGit) CloneWithOptions(dir string, url string, opts git.CloneOptions) error
- func (f *FakeGit) Fetch(source string) error
- func (f *FakeGit) GetInfo(location string) (*git.SourceInfo, []error)
- func (g *FakeGit) GetOriginURL(dir string) (string, bool, error)
- func (g *FakeGit) GetRef(dir string) string
- func (g *FakeGit) GetRootDir(dir string) (string, error)
- func (f *FakeGit) Init(source string, _ bool) error
- func (f *FakeGit) ListRemote(url string, args ...string) (string, string, error)
- func (f *FakeGit) ShowFormat(source, ref, format string) (string, error)
- func (g *FakeGit) SubmoduleUpdate(dir string, init, recurse bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeGit ¶
type FakeGit struct { RootDir string GitURL string Ref string CloneCalled bool CheckoutCalled bool SubmoduleUpdateCalled bool }
func (*FakeGit) AddLocalConfig ¶
func (*FakeGit) CloneMirror ¶
func (*FakeGit) CloneWithOptions ¶ added in v1.1.1
func (*FakeGit) GetInfo ¶ added in v1.1.1
func (f *FakeGit) GetInfo(location string) (*git.SourceInfo, []error)
func (*FakeGit) ListRemote ¶ added in v1.1.1
func (*FakeGit) ShowFormat ¶
Click to show internal directories.
Click to hide internal directories.