summaryrefslogtreecommitdiff
path: root/builtin-gc.c
diff options
context:
space:
mode:
authorPierre Habouzit <madcoder@debian.org>2007-09-15 15:56:50 +0200
committerJunio C Hamano <gitster@pobox.com>2007-09-16 17:30:03 -0700
commit917c9a713397b16671ed5b1f1c159515bcfa389e (patch)
tree666fde07656debe768ad4f388e5a0e87759d3459 /builtin-gc.c
parent760da9607ee08e9dd495dee993262bb857694ac9 (diff)
downloadgit-917c9a713397b16671ed5b1f1c159515bcfa389e.tar.gz
New strbuf APIs: splice and attach.
* strbuf_splice replace a portion of the buffer with another. * strbuf_attach replace a strbuf buffer with the given one, that should be malloc'ed. Then it enforces strbuf's invariants. If alloc > len, then this function has negligible cost, else it will perform a realloc, possibly with a cost. Also some style issues are fixed now. Signed-off-by: Pierre Habouzit <madcoder@debian.org> Acked-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-gc.c')
0 files changed, 0 insertions, 0 deletions