summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Bleecher Snyder <[email protected]>2019-08-27 10:23:37 -0700
committerJosh Bleecher Snyder <[email protected]>2019-08-27 10:23:37 -0700
commit79b2cb6ca1aae4a9f442291fd88e37ef9b52ff2a (patch)
treeb6eee6d3af60716278e339ef85a221c8090effba
parent37e5b53f742d3127acfa2a9cfc57ccb94e1b8c59 (diff)
provide param names in DiffForEachFileCallback
Without a parameter name, the float64 param is pretty inscrutable.
-rw-r--r--diff.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/diff.go b/diff.go
index b025edd..a5d1a61 100644
--- a/diff.go
+++ b/diff.go
@@ -284,7 +284,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