diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-06-28 15:51:59 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-07-24 15:08:23 -0700 |
commit | f5800f6ad8b8cbf41a252f7ca0ae465217174c60 (patch) | |
tree | 2538a91b20650e583d6ccdb8d53d23abdaa3df83 /test-dump-split-index.c | |
parent | rerere: plug conflict ID leaks (diff) | |
download | tgif-f5800f6ad8b8cbf41a252f7ca0ae465217174c60.tar.xz |
rerere: lift PATH_MAX limitation
The MERGE_RR file records a collection of NUL-terminated entries,
each of which consists of
- a hash that identifies the conflict
- a HT
- the pathname
We used to read this piece-by-piece, and worse yet, read the
pathname part a byte at a time into a fixed buffer of size PATH_MAX.
Instead, read a whole entry using strbuf_getwholeline() and parse
out the fields. This way, we issue fewer read(2) calls and more
importantly we do not have to limit the pathname to PATH_MAX.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'test-dump-split-index.c')
0 files changed, 0 insertions, 0 deletions