summaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-06-28 15:51:59 -0700
committerJunio C Hamano <gitster@pobox.com>2015-07-24 15:08:23 -0700
commitf5800f6ad8b8cbf41a252f7ca0ae465217174c60 (patch)
tree2538a91b20650e583d6ccdb8d53d23abdaa3df83 /commit.c
parent8d9b5a4ada8b8e187af7dbdc7bc24f6ed774df80 (diff)
downloadgit-f5800f6ad8b8cbf41a252f7ca0ae465217174c60.tar.gz
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 'commit.c')
0 files changed, 0 insertions, 0 deletions