Documentation ¶
Index ¶
- Constants
- type Fossil
- func (f *Fossil) Add(ctx context.Context, files ...string) error
- func (f *Fossil) AddRemote(ctx context.Context, remote, url string) error
- func (f *Fossil) Cmd(ctx context.Context, name string, args ...string) error
- func (f *Fossil) Commit(ctx context.Context, msg string) error
- func (f *Fossil) Compact(ctx context.Context) error
- func (f *Fossil) ConfigGet(ctx context.Context, key string) (string, error)
- func (f *Fossil) ConfigList(ctx context.Context) (map[string]string, error)
- func (f *Fossil) ConfigSet(ctx context.Context, key, value string) error
- func (f *Fossil) Delete(ctx context.Context, name string) error
- func (f *Fossil) Exists(ctx context.Context, name string) bool
- func (f *Fossil) Fsck(ctx context.Context) error
- func (f *Fossil) Get(ctx context.Context, name string) ([]byte, error)
- func (f *Fossil) GetRevision(ctx context.Context, name, revision string) ([]byte, error)
- func (f *Fossil) HasStagedChanges(ctx context.Context) bool
- func (f *Fossil) InitConfig(ctx context.Context, _, _ string) error
- func (f *Fossil) IsDir(ctx context.Context, name string) bool
- func (f *Fossil) IsInitialized() bool
- func (f *Fossil) Link(ctx context.Context, from, to string) error
- func (f *Fossil) List(ctx context.Context, prefix string) ([]string, error)
- func (f *Fossil) ListUntrackedFiles(ctx context.Context) []string
- func (f *Fossil) Move(ctx context.Context, src, dst string, del bool) error
- func (f *Fossil) Name() string
- func (f *Fossil) Path() string
- func (f *Fossil) Prune(ctx context.Context, prefix string) error
- func (f *Fossil) Pull(ctx context.Context, remote, branch string) error
- func (f *Fossil) Push(ctx context.Context, remote, branch string) error
- func (f *Fossil) PushPull(ctx context.Context, op, remote, branch string) error
- func (f *Fossil) RemoveRemote(ctx context.Context, remote string) error
- func (f *Fossil) Revisions(ctx context.Context, name string) ([]backend.Revision, error)
- func (f *Fossil) Set(ctx context.Context, name string, value []byte) error
- func (f *Fossil) Status(ctx context.Context) ([]byte, error)
- func (f *Fossil) String() string
- func (f *Fossil) Version(ctx context.Context) semver.Version
Constants ¶
View Source
const (
// CheckoutMarker is the marker file that indicates a fossil checkout.
CheckoutMarker = ".fslckout"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fossil ¶
type Fossil struct {
// contains filtered or unexported fields
}
Fossil is a storage backend for Fossil.
func (*Fossil) ConfigList ¶
ConfigList returns all fossil config settings.
func (*Fossil) GetRevision ¶
GetRevision will return the content of any revision of the named entity.
func (*Fossil) HasStagedChanges ¶
HasStagedChanges returns true if there are any staged changes which can be committed.
func (*Fossil) InitConfig ¶
InitConfig initializes the fossil config.
func (*Fossil) IsInitialized ¶
IsInitialized returns true if this stores has an (probably) initialized Fossil chkecout.
func (*Fossil) List ¶
List returns a list of all entities e.g. foo, far/bar baz/.bang directory separator are normalized using `/`.
func (*Fossil) ListUntrackedFiles ¶
ListUntrackedFiles lists untracked files.
func (*Fossil) PushPull ¶
PushPull pushes the repo to it's origin. optional arguments: remote and branch.
func (*Fossil) RemoveRemote ¶
RemoveRemote removes a remote.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.