Package-level declarations

Types

Link copied to clipboard
data class Author(val name: String, val email: String)
Link copied to clipboard
class Blob(val data: String) : Node

A blob is a data container.

Link copied to clipboard
Link copied to clipboard
class Commit(val tree: Tree, val author: Author, val message: String, val timestamp: Instant) : Object

Commits are a pointer to a 'head' tree with some metadata.

Link copied to clipboard
Link copied to clipboard
sealed class Node : Object

Tree nodes are either trees or blobs, represented by this sealed class.

Link copied to clipboard
abstract class Object(val type: String)

Represents an arbitrary version manager object.

Link copied to clipboard
class Repository(initialBranch: String = "master")
Link copied to clipboard
class Tree(val nodes: Map<String, Node>) : Node

A tree is a set of named nodes.