Commit Graph

7 Commits

Author SHA1 Message Date
brian m. carlson
e3fcde746a git: replace object scanner with one based on gitobj
Currently, our object scanner is based on calling git cat-file --batch.
This is less efficient than reading the objects ourselves in process, so
update the object scanner to use our gitobj package instead.

Remove the reset function from the object scanner, since it is no longer
used.  Also, since we no longer need to worry about reading too much
data from git cat-file --batch, switch the io.LimitedReader to a plain
io.Reader to simplify the code.

Note that in the tests we now specify the object ID of the pointer item
to scan since we no longer can implicitly read from a fake buffer.
Consequently, we no longer look for a trailing entry, since that won't
succeed anymore.
2018-09-11 18:43:27 +00:00
Lars Schneider
4a686891fa git: use wrapper functions to call Git with Git LFS disabled
The only side effect of this refactoring should be that the Git LFS
is disabled for the Git subprocess. No other functional changes are
intended.
2017-08-21 13:37:48 +02:00
Taylor Blau
76154ea3cb Merge branch 'master' into status-missing-objects 2017-08-08 16:43:03 -06:00
Taylor Blau
c7581be6b0 git/odb: fix closing object database test 2017-07-31 10:45:56 -06:00
Taylor Blau
bfa08115e4 git: use missing object error in ObjectScanner.Scan 2017-07-24 15:08:00 -06:00
Taylor Blau
3d1884edb5 git: teach 'missingErr' type and IsMissingObject() 2017-07-24 15:07:36 -06:00
Taylor Blau
3075284223 git: implement git.ObjectScanner type to read object contents 2017-04-04 14:14:02 -06:00