diff options
| author | Josh Bleecher Snyder <[email protected]> | 2019-08-27 10:02:12 -0700 |
|---|---|---|
| committer | Josh Bleecher Snyder <[email protected]> | 2019-08-27 10:02:12 -0700 |
| commit | 3849c7f52a4d923013685d6b7303daae9132fafe (patch) | |
| tree | 329b9abb9e22d86f2f4ae50dc8a2f584918faf27 /diff.go | |
| parent | 37e5b53f742d3127acfa2a9cfc57ccb94e1b8c59 (diff) | |
make Delta and DiffLineType stringers
Diffstat (limited to 'diff.go')
| -rw-r--r-- | diff.go | 4 |
1 files changed, 4 insertions, 0 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 |
