A rather trivial cleanup series to avoid hardcoding 8192 in N places in strbuf.[ch], instead we add a STRBUF_HINT_SIZE macro. Then make strbuf_fread() take a "hint" instead of "size" (like most similar functions) so we can pass a size of "0" meaning the default hint to it. Ævar Arnfjörð Bjarmason (3): strbuf.[ch]: add STRBUF_HINT_SIZE macro = 8192 strbuf.h API users: don't hardcode 8192, use STRBUF_HINT_SIZE strbuf.[ch]: make strbuf_fread() take hint, not size builtin/am.c | 4 ++-- cache-tree.c | 2 +- commit.c | 2 +- strbuf.c | 9 +++++---- strbuf.h | 14 +++++++++++++- 5 files changed, 22 insertions(+), 9 deletions(-) -- 2.32.0.636.g43e71d69cff