e3fcde746a
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. |
||
---|---|---|
.. | ||
gitattr | ||
githistory | ||
attribs.go | ||
config.go | ||
filter_process_scanner_test.go | ||
filter_process_scanner.go | ||
filter_process_status.go | ||
git_test.go | ||
git.go | ||
object_scanner.go | ||
pkt_line_reader_test.go | ||
pkt_line_reader.go | ||
pkt_line_test.go | ||
pkt_line_writer_test.go | ||
pkt_line_writer.go | ||
pkt_line.go | ||
refs_test.go | ||
refs.go | ||
rev_list_scanner_test.go | ||
rev_list_scanner.go | ||
version.go |