diff options
author | Pierre Habouzit <madcoder@debian.org> | 2007-09-17 16:00:38 +0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-09-18 11:55:25 +0400 |
commit | 0557656930d41f10c90bccf90e3c5bd87bd53661 (patch) | |
tree | 7760bf79e58acdc0ba9305aa368b87b44fbb1686 /git-compat-util.h | |
parent | eec813cfc6409a1b72399acf7ac08283faad7b8f (diff) |
fast-import optimization:
Now that cmd_data acts on a strbuf, make last_object stashed buffer be a
strbuf as well. On new stash, don't free the last stashed buffer, rather
swap it with the one you will stash, this way, callers of store_object can
act on static strbufs, and at some point, fast-import won't allocate new
memory for objects buffers.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-compat-util.h')
0 files changed, 0 insertions, 0 deletions