From 43c09134a972dc421aa06fb303697671c828cf67 Mon Sep 17 00:00:00 2001 From: Lauris BH Date: Tue, 17 Mar 2020 18:19:58 +0200 Subject: Migrate to go-git/go-git v5.0.0 (#10735) --- .../sergi/go-diff/diffmatchpatch/operation_string.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 vendor/github.com/sergi/go-diff/diffmatchpatch/operation_string.go (limited to 'vendor/github.com/sergi/go-diff/diffmatchpatch/operation_string.go') diff --git a/vendor/github.com/sergi/go-diff/diffmatchpatch/operation_string.go b/vendor/github.com/sergi/go-diff/diffmatchpatch/operation_string.go new file mode 100644 index 0000000000..533ec0da7b --- /dev/null +++ b/vendor/github.com/sergi/go-diff/diffmatchpatch/operation_string.go @@ -0,0 +1,17 @@ +// Code generated by "stringer -type=Operation -trimprefix=Diff"; DO NOT EDIT. + +package diffmatchpatch + +import "fmt" + +const _Operation_name = "DeleteEqualInsert" + +var _Operation_index = [...]uint8{0, 6, 11, 17} + +func (i Operation) String() string { + i -= -1 + if i < 0 || i >= Operation(len(_Operation_index)-1) { + return fmt.Sprintf("Operation(%d)", i+-1) + } + return _Operation_name[_Operation_index[i]:_Operation_index[i+1]] +} -- cgit v1.2.3