]> git.ipfire.org Git - thirdparty/git.git/commit - git-compat-util.h
git-compat-util: make MAX_IO_SIZE define globally available
authorJeff King <peff@peff.net>
Wed, 17 Aug 2022 06:06:58 +0000 (02:06 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 17 Aug 2022 16:21:40 +0000 (09:21 -0700)
commitec4f39b2333db94096ec2d6b900eabaf4d1e3f1b
tree3f50c4ea5755856d822e30225438d24b55dc678a
parent24b56ae4aecc937a246efb94d283f54a7f59c7f1
git-compat-util: make MAX_IO_SIZE define globally available

We define MAX_IO_SIZE within wrapper.c, but it's useful for any code
that wants to do a raw write() for whatever reason (say, because they
want different EAGAIN handling). Let's make it available everywhere.

The alternative would be adding xwrite_foo() variants to give callers
more options. But there's really no reason MAX_IO_SIZE needs to be
abstracted away, so this give callers the most flexibility.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-compat-util.h
wrapper.c