]> git.ipfire.org Git - thirdparty/git.git/commit - fast-import.c
fast-import: Use strbuf API, and simplify cmd_data()
authorPierre Habouzit <madcoder@debian.org>
Thu, 6 Sep 2007 11:20:07 +0000 (13:20 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 7 Sep 2007 06:57:44 +0000 (23:57 -0700)
commit4a241d79c9020dcafb1f254774bcab200171ab46
tree39402dace82bb4204a7112ff81fca4a93bad286a
parent7a604f16b71e3bfd1c6e30d400f05be918e5376e
fast-import: Use strbuf API, and simplify cmd_data()

  This patch features the use of strbuf_detach, and prevent the programmer
to mess with allocation directly. The code is as efficent as before, just
more concise and more straightforward.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
fast-import.c