github.com/sergi/go-diff/diffmatchpatch.Diff.Type (field)
52 uses
github.com/sergi/go-diff/diffmatchpatch (current package)
diff.go#L41: Type Operation
diff.go#L218: switch diffs[pointer].Type {
diff.go#L661: if diffs[pointer].Type == DiffEqual {
diff.go#L672: if diffs[pointer].Type == DiffInsert {
diff.go#L688: diffs[insPoint+1].Type = DiffInsert
diff.go#L724: if diffs[pointer-1].Type == DiffDelete &&
diff.go#L725: diffs[pointer].Type == DiffInsert {
diff.go#L747: diffs[pointer-1].Type = DiffInsert
diff.go#L749: diffs[pointer+1].Type = DiffDelete
diff.go#L820: if diffs[pointer-1].Type == DiffEqual &&
diff.go#L821: diffs[pointer+1].Type == DiffEqual {
diff.go#L908: if diffs[pointer].Type == DiffEqual { // Equality found.
diff.go#L927: if diffs[pointer].Type == DiffDelete {
diff.go#L962: diffs[insPoint+1].Type = DiffInsert
diff.go#L1010: switch diffs[pointer].Type {
diff.go#L1029: if x > 0 && diffs[x-1].Type == DiffEqual {
diff.go#L1071: } else if pointer != 0 && diffs[pointer-1].Type == DiffEqual {
diff.go#L1095: if diffs[pointer-1].Type == DiffEqual &&
diff.go#L1096: diffs[pointer+1].Type == DiffEqual {
diff.go#L1134: if aDiff.Type != DiffInsert {
diff.go#L1138: if aDiff.Type != DiffDelete {
diff.go#L1150: if lastDiff.Type == DiffDelete {
diff.go#L1164: switch diff.Type {
diff.go#L1188: switch diff.Type {
diff.go#L1211: if aDiff.Type != DiffInsert {
diff.go#L1223: if aDiff.Type != DiffDelete {
diff.go#L1237: switch aDiff.Type {
diff.go#L1259: switch aDiff.Type {
patch.go#L57: switch aDiff.Type {
patch.go#L156: if len(patch.diffs) == 0 && aDiff.Type != DiffEqual {
patch.go#L162: switch aDiff.Type {
patch.go#L194: if aDiff.Type != DiffInsert {
patch.go#L197: if aDiff.Type != DiffDelete {
patch.go#L218: aDiff.Type,
patch.go#L295: if aDiff.Type != DiffEqual {
patch.go#L297: if aDiff.Type == DiffInsert {
patch.go#L300: } else if aDiff.Type == DiffDelete {
patch.go#L307: if aDiff.Type != DiffDelete {
patch.go#L337: if len(patches[0].diffs) == 0 || patches[0].diffs[0].Type != DiffEqual {
patch.go#L356: if len(patches[last].diffs) == 0 || patches[last].diffs[len(patches[last].diffs)-1].Type != DiffEqual {
patch.go#L401: diffType := bigpatch.diffs[0].Type
patch.go#L410: } else if diffType == DiffDelete && len(patch.diffs) == 1 && patch.diffs[0].Type == DiffEqual && len(diffText) > 2*patchSize {
patch.go#L453: if len(patch.diffs) != 0 && patch.diffs[len(patch.diffs)-1].Type == DiffEqual {
github.com/go-git/go-git/v5
blame.go#L231: case hunks[h].Type == 0:
blame.go#L235: case hunks[h].Type == 1:
blame.go#L238: case hunks[h].Type == -1:
references.go#L253: if a.Type != b.Type {
references.go#L256: switch a.Type {
github.com/go-git/go-git/v5/plumbing/object
patch.go#L79: switch d.Type {
github.com/go-git/go-git/v5/utils/diff
diff.go#L45: if d.Type != diffmatchpatch.DiffDelete {
diff.go#L56: if d.Type != diffmatchpatch.DiffInsert {
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |