summaryrefslogtreecommitdiff
path: root/diff.go
diff options
context:
space:
mode:
authorlhchavez <[email protected]>2020-02-13 02:50:31 +0000
committerlhchavez <[email protected]>2020-02-13 02:50:31 +0000
commit150a8c60169ee69f4a869acbc10dbe097274605a (patch)
treeccadf6203e85d60bfa8d6221dd94ff470f9a66f3 /diff.go
parentb201c503ab5788b2ce5511fa75792127e27e254c (diff)
parent75c5e41422f224a6fde40903c4af4cf1afbd2d46 (diff)
Merge remote-tracking branch 'origin/master' into actions
Diffstat (limited to 'diff.go')
-rw-r--r--diff.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/diff.go b/diff.go
index b025edd..ed2949c 100644
--- a/diff.go
+++ b/diff.go
@@ -39,6 +39,8 @@ const (
DeltaConflicted Delta = C.GIT_DELTA_CONFLICTED
)
+//go:generate stringer -type Delta -trimprefix Delta -tags static
+
type DiffLineType int
const (
@@ -54,6 +56,8 @@ const (
DiffLineBinary DiffLineType = C.GIT_DIFF_LINE_BINARY
)
+//go:generate stringer -type DiffLineType -trimprefix DiffLine -tags static
+
type DiffFile struct {
Path string
Oid *Oid
@@ -284,7 +288,7 @@ type diffForEachData struct {
Error error
}
-type DiffForEachFileCallback func(DiffDelta, float64) (DiffForEachHunkCallback, error)
+type DiffForEachFileCallback func(delta DiffDelta, progress float64) (DiffForEachHunkCallback, error)
type DiffDetail int