tree.c: update read_tree_recursive callback to pass strbuf as base
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Sun, 30 Nov 2014 09:05:00 +0000 (16:05 +0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 Dec 2014 19:32:29 +0000 (11:32 -0800)
commit6a0b0b6de996e2ac7eeb951e3d08f577c11c7e54
treeb5ce77337d93903b5363e20694397efcb73daf25
parentb260d265e189728b26e50506ac6ffab6a7d588da
tree.c: update read_tree_recursive callback to pass strbuf as base

This allows the callback to use 'base' as a temporary buffer to
quickly assemble full path "without" extra allocation. The callback
has to restore it afterwards of course.

Helped-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
archive.c
builtin/checkout.c
builtin/log.c
builtin/ls-tree.c
merge-recursive.c
tree.c
tree.h