()
| 225 | } |
| 226 | |
| 227 | func (stats *DiffStats) Free() error { |
| 228 | if stats.ptr == nil { |
| 229 | return ErrInvalid |
| 230 | } |
| 231 | runtime.SetFinalizer(stats, nil) |
| 232 | C.git_diff_stats_free(stats.ptr) |
| 233 | stats.ptr = nil |
| 234 | return nil |
| 235 | } |
| 236 | |
| 237 | func (stats *DiffStats) Insertions() int { |
| 238 | ret := int(C.git_diff_stats_insertions(stats.ptr)) |
nothing calls this directly
no outgoing calls
no test coverage detected