Git fork

strbuf: clarify API boundary

strbuf, as a generic and widely used structure across the codebase,
should be limited as a library to only interact with primitives. Add
documentation so future functions can appropriately be placed. Older
functions that do not follow this boundary should eventually be moved or
refactored.

Signed-off-by: Calvin Wan <calvinwan@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

authored by

Calvin Wan and committed by
Junio C Hamano
45577796 fe86abd7

+8
+8
strbuf.h
··· 1 1 #ifndef STRBUF_H 2 2 #define STRBUF_H 3 3 4 + /* 5 + * NOTE FOR STRBUF DEVELOPERS 6 + * 7 + * strbuf is a low-level primitive; as such it should interact only 8 + * with other low-level primitives. Do not introduce new functions 9 + * which interact with higher-level APIs. 10 + */ 11 + 4 12 struct string_list; 5 13 6 14 /**