aboutsummaryrefslogtreecommitdiffstats
path: root/bug/operations/operation.go
blob: a9cf806fd39bdcb0cc843b8c61a8f3c2f46f8926 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
}