(output *CommitOutput, repo *Repo)
| 280 | } |
| 281 | |
| 282 | func (infile *FileInput) AddToIndex(output *CommitOutput, repo *Repo) { |
| 283 | inputData := infile.getFileInputReader() |
| 284 | pointer, err := infile.writeLFSPointer(repo, inputData) |
| 285 | if err != nil { |
| 286 | repo.callback.Errorf("%+v", err) |
| 287 | return |
| 288 | } |
| 289 | output.Files = append(output.Files, pointer) |
| 290 | RunGitCommand(repo.callback, true, "add", infile.Filename) |
| 291 | } |
| 292 | |
| 293 | func (infile *FileInput) writeLFSPointer(repo *Repo, inputData io.Reader) (*lfs.Pointer, error) { |
| 294 | cleaned, err := repo.gitfilter.Clean(inputData, infile.Filename, infile.Size, nil) |
no test coverage detected