aboutsummaryrefslogblamecommitdiffstats
path: root/bug/operations/operation.go
blob: a9cf806fd39bdcb0cc843b8c61a8f3c2f46f8926 (plain) (tree)


















                                                 
package operations

import (
	"github.com/MichaelMure/git-bug/bug"
)

type OperationType int

const (
	UNKNOW OperationType = iota
	CREATE
	SET_TITLE
	ADD_COMMENT
)

type Operation interface {
	OpType() OperationType
	Apply(snapshot bug.Snapshot) bug.Snapshot
}