Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ConfigFile is the name of the config file. ConfigFile = "config.json" // DefaultBranch is the name of the default branch. DefaultBranch = "main" )
View Source
const DotDir = ".multi"
DotDir is the name of the dot directory.
Variables ¶
View Source
var DefaultIgnore = ignore.New("", ".git", ".svn", ".hg", ".multi")
DefaultIgnore contans the default ignore rules.
Functions ¶
Types ¶
type Branch ¶
type Branch struct { // Head is the CID of the branch head. Head cid.Cid `json:"head"` // Stash is the CID of the tree stash. Stash cid.Cid `json:"stash"` // Remote is the remote branch path. Remote string `json:"remote"` }
Branch contains branch info.
type Config ¶
type Config struct { // Branch is the name of the current branch. Branch string `json:"branch"` // Branches contains named branches. Branches map[string]*Branch `json:"branches"` // Remotes contains named remotes. Remotes map[string]string `json:"remotes"` // contains filtered or unexported fields }
Config contains repository info.
type Context ¶
type Context struct { // Blocks is the ipfs blockstore. Blocks blockstore.Blockstore // Config contains repository settings. Config *Config // DAG contains all versioned files. DAG ipld.DAGService // Root is the top level directory. Root string }
Context contains command context.
Click to show internal directories.
Click to hide internal directories.