diff options
| author | lhchavez <[email protected]> | 2020-02-13 02:50:31 +0000 |
|---|---|---|
| committer | lhchavez <[email protected]> | 2020-02-13 02:50:31 +0000 |
| commit | 150a8c60169ee69f4a869acbc10dbe097274605a (patch) | |
| tree | ccadf6203e85d60bfa8d6221dd94ff470f9a66f3 /diff.go | |
| parent | b201c503ab5788b2ce5511fa75792127e27e254c (diff) | |
| parent | 75c5e41422f224a6fde40903c4af4cf1afbd2d46 (diff) | |
Merge remote-tracking branch 'origin/master' into actions
Diffstat (limited to 'diff.go')
| -rw-r--r-- | diff.go | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |
