Files
git/builtin
Jeff King 07af889136 gc: replace local buffer with git_path
We probe the "17/" loose object directory for auto-gc, and
use a local buffer to format the path. We can just use
git_path() for this. It handles paths of any length
(reducing our error handling). And because we feed the
result straight to a system call, we can just use the static
variant.

Note that git_path also knows the string "objects/" is
special, and will replace it with git_object_directory()
when necessary.

Another alternative would be to use sha1_file_name() for the
pretend object "170000...", but that ends up being more
hassle for no gain, as we have to truncate the final path
component.

Signed-off-by: Jeff King <peff@peff.net>
2017-03-30 14:59:50 -07:00
..
2016-11-22 13:55:20 -08:00
2017-03-17 13:50:24 -07:00
2017-03-17 13:50:25 -07:00
2017-03-17 13:50:25 -07:00
2017-01-30 14:17:00 -08:00
2017-03-30 14:59:50 -07:00
2017-03-17 13:50:25 -07:00
2016-09-29 15:42:18 -07:00
2017-01-18 15:12:15 -08:00
2017-01-31 13:14:56 -08:00
2017-03-22 15:41:21 -07:00
2017-03-24 13:07:37 -07:00
2017-01-23 18:51:56 -08:00