commit | e6f875e052bb327d43d86b4e8335ebd4746d3e2a | [log] [tgz] |
---|---|---|
author | Jeff King <peff@peff.net> | Sun Feb 08 20:13:22 2015 -0500 |
committer | Junio C Hamano <gitster@pobox.com> | Mon Feb 09 14:14:53 2015 -0800 |
tree | 18414f1349d6f3b8924b29880a736490f431f97f | |
parent | 189a1222493f73977291f57d0f2030e982aff282 [diff] |
for_each_loose_file_in_objdir: take an optional strbuf path We feed a root "objdir" path to this iterator function, which then copies the result into a strbuf, so that it can repeatedly append the object sub-directories to it. Let's make it easy for callers to just pass us a strbuf in the first place. We leave the original interface as a convenience for callers who want to just pass a const string like the result of get_object_directory(). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>