Add mksnpath which allows you to specify the output buffer
commit108bebeab31881654b7b0f1b5b393a6655d74d3f
authorAlex Riesen <raa.lkml@gmail.com>
Sun, 26 Oct 2008 21:59:13 +0000 (26 22:59 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 27 Oct 2008 05:08:58 +0000 (26 22:08 -0700)
tree49568beafbd6e9d84bcd200f6070b45b6ea74c8e
parent9fe7a643fcc56ca1c17afec5d5f8adca10cabdd1
Add mksnpath which allows you to specify the output buffer

This is just vsnprintf's but additionally calls cleanup_path() on the
result. To be used as alternatives to mkpath() where the buffer for the
created path may not be reused by subsequent calls of the same formatting
function.

Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h
path.c