(s []*string)
| 690 | } |
| 691 | |
| 692 | func stringsReader(s []*string) io.Reader { |
| 693 | var subReaders []io.Reader |
| 694 | for _, strPtr := range s { |
| 695 | subReader := strings.NewReader(*strPtr) |
| 696 | subReaders = append(subReaders, subReader, strings.NewReader("\n")) |
| 697 | } |
| 698 | return io.MultiReader(subReaders...) |
| 699 | } |
| 700 | |
| 701 | // splitBatchCheckOutput parses the output of a 'git cat-file --batch-check=...' command. |
| 702 | // |