Documentation
¶
Overview ¶
Package gitobject provides the internal use-case for a set of blob, tree and commit.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Set = wire.NewSet( wire.Struct(new(CreateGitObject), "*"), wire.Bind(new(Interface), new(*CreateGitObject)), )
Functions ¶
This section is empty.
Types ¶
type CreateGitObject ¶
type CreateGitObject struct { FileSystem fs.Interface Logger logger.Interface GitHub github.Interface }
CreateGitObject creates blob(s), a tree and a commit.
type Input ¶
type Input struct { Files []fs.File // nil or empty to create an empty commit Repository git.RepositoryID CommitMessage git.CommitMessage Author *git.CommitAuthor // optional Committer *git.CommitAuthor // optional ParentCommitSHA git.CommitSHA // no parent if empty ParentTreeSHA git.TreeSHA // no parent if empty NoFileMode bool }
Click to show internal directories.
Click to hide internal directories.