Commit 61e52df
committed
osfs: Override the WriteTo interface
The WriteTo signature for osfs.file has been changed so that it
is no longer a io.WriterTo implementation. The built-in implementation
of WriterTo is rather inefficient when coupled with go-git. Further
investigation is required to understand whether this is an upstream
issue or something very specific to osfs.BoundOS + go-git.
Note that this only affects osfs.BoundOS, as ChrootHelper already
ensures that osfs.ChrootOS does not implement io.WriterTo.
Signed-off-by: Paulo Gomes <[email protected]>1 parent 7625c6c commit 61e52df
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
109 | 110 | | |
110 | 111 | | |
111 | 112 | | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
0 commit comments